Click or drag to resize

ISensorDouble Interface

A sensor retrieves a value from the simulation and acts as a variable in the control expressions.

This sensor returns a double and includes unit conversion.

Namespace:  DHI.Mike1D.ControlModule
Assembly:  DHI.Mike1D.ControlModule (in DHI.Mike1D.ControlModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface ISensorDouble : ISensor<double>, 
	ISensor, IVariable, ITypedExpression, IExpressionAcceptor, IExpression<double>

The ISensorDouble type exposes the following members.

Properties
  NameDescription
Public propertyConversionFactor
Factor to convert from engine unit to sensor TargetUnit
sensorValue = engineValue*ConversionFactor + ConversionOffset
These factors are calculated based on the TargetUnit automatically when the sensor is created, and can be modified at a later point in time, if necessary.

Only available for sensors returning a double value

Public propertyConversionOffset
Factor to convert from engine unit to sensor TargetUnit
sensorValue = engineValue*ConversionFactor + ConversionOffset
These factors are calculated based on the TargetUnit automatically when the sensor is created, and can be modified at a later point in time, if necessary.

Only available for sensors returning a double value

Public propertyGetter
Getter used to extract the value of the sensor
(Inherited from ISensorT.)
Public propertyId
Unique id
(Inherited from ISensor.)
Public propertyName (Inherited from IVariable.)
Public propertyResultType (Inherited from ITypedExpression.)
Public propertyTargetUnit
Target unit, unit in which the sensor is supposed to return its value.

Only available for sensors returning a double value

Public propertyValue (Inherited from IVariable.)
Top
Methods
  NameDescription
Public methodAccept``1 (Inherited from IExpressionAcceptor.)
Public methodEvaluate (Inherited from ITypedExpression.)
Top
See Also