Constructor - Loads DLL (if not yet loaded) and initializes the model, only one instance of this class can be created. Will throw an exception if more than one is created

Namespace: WaterSimDCDC
Assembly: WaterSimDCDC_API (in WaterSimDCDC_API.dll) Version: 5.0.0.10 (5.0.0.10)

Syntax

C#
public WaterSim(
	string TempDirectoryName,
	string DataDirectoryName
)
Visual Basic
Public Sub New ( _
	TempDirectoryName As String, _
	DataDirectoryName As String _
)

Parameters

TempDirectoryName
Type: System..::..String
This is where the model places its output files, Creates a diectoy (TempDirectoryName) if it does not exist
DataDirectoryName
Type: System..::..String
Location of data

Exceptions

ExceptionCondition
WaterSimDCDC..::..WaterSim_Exception If an object has already been instantiated
WaterSimDCDC..::..WaterSim_Exceptionif the data directory is invalid
WaterSimDCDC..::..WaterSim_ExceptionInternal Error - If Model Parameters as not initialized properly

See Also