DOF Constructor (DOFConfig)OpenDOF Object Access Library
Creates a DOF instance that uses the specified configuration.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public DOF(
	DOFConfig config
)

Parameters

config
Type: org.opendof.core.oalDOFConfig
An instance of Config that represents a source of configuration parameters for the DOF. Use Builder to create an instance of DOF.Config. You may pass a null value to use the default configuration.
Exceptions

ExceptionCondition
ArgumentExceptionIndicates that the configuration has errors, including a DOF name that is already in use or other invalid arguments.
Remarks

Creates a DOF instance that uses the specified configuration. DOF is one of the few classes in the OAL where you use a constructor with the new keyword to instantiate a class. Most other classes in the OAL are instantiated using a create method (for example, see createSystem() ).

It is very rare that an application would require more than a single DOF, but multiples can be created.

Each DOF created must be destroyed by calling the destroy() method.

See Also

Reference