Creates a DOFDomainState for the given DOFDomain. 
- Resource Management:
 - This function allocates resources that must later be freed by calling DOFDomainState.
 
- Parameters
 - 
  
    | self | The domain to create the state for. This must not be NULL. | 
  
   
- Returns
 - DOFDomainState state that represents that DOFDomain at the point in time where it was created. 
 
- Exceptions
 - 
  
    | NULL | is returned for a failure.  |