Click or drag to resize

ControlData Properties

The ControlData type exposes the following members.

Properties
  NameDescription
Public propertyActionTargetDescriptions
Dictionary with sensor descriptions as value and sensor ID as key
Public propertyAdditionalData
Additional data from the MIKE 1D data object. Set during initialize.
Public propertyBaseFilePath
Base file path is use to find supporting files when reading control structures For M11 setups, this points to the directory of the .nwk file
Public propertyBuildInVariables
List of build-in predefined variables. Contains variables like .

If a sensor or another variable is defined with the same name, variables in this list is ignored.

Public propertyConnection
Holder of read/write information
(Inherited from AbstractDataAccess.)
Public propertyControlStateMachines
List of controls handled by the control module.
Public propertyControlUpdaters
List of IControlFunctionTime objects, which need an explicit call to Update(DateTime, DateTime) before it can evaluate control/function/etc.

Used during simulation. Used e.g. by control functions (functions in expressions) that depend on time (added automatically during Prepare(DateTime, IDiagnostics)).

Public propertyCustomTypes
List of custom types stored in the data object and that must be serialized.

A custom type is e.g. a user implemented structure or catchment model. In order to store information on the custom type in the .m1dx file, the system needs to know which custom types are being used, and they must be added to this list.

(Inherited from AbstractDataAccess.)
Public propertyExpressionFactory
Expression factory that must be used when creating expressions for this control data object.
Public propertyExtensionData
Holds data from an extended DataContract
(Inherited from AbstractDataAccess.)
Public propertyNumberOfIterations
Number of iterations when applying the control.

Default value is 1. Only increase if there are controls depending on other controls.

In case some controls depends on other controls, it can be necessary to evaluate the controls twice, such having the second control updated in the second iteration, after the first control has updated in first iteration.

Public propertySensorDescriptions
Sensor descriptions, indexed by their id.
Public propertySensors
List of sensors.

Used during simulation. All sensors in SensorDescriptions are automatically created during Initialize(Diagnostics).

Sensors that are required but not part of SensorDescriptions must be added explicitly.

Public propertyTableInfos
Information on time series. Each time series info has their own unique ID.
Public propertyTimeSeriesInfos
Information on time series. Each time series info has their own unique ID.
Public propertyTsBuffer
A buffer containing all timeseries, so they can be reused as much as possible.
Public propertyUserFunctionFactories
Factory for creating user functions. All user defined functions must be added to the set of UserFunctions or be returned by a UserFunctionFactories.
Public propertyUserFunctions
User defined functions in the expression. All user defined functions must be added to the set of UserFunctions or be returned by a UserFunctionFactories.
Public propertyVariables
List of user defined variables.

User defined variables are variables that are evaluated in every Update(DateTime, DateTime) and can be used in other expressions.

The variables are evaluated in-order, if a variable "A" is used in the expression of another variable "B", then "A" must be defined before "B" in this list.

Top
See Also