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.

Definition

Namespace: DHI.Mike1D.ControlModule
Assembly: DHI.Mike1D.ControlModule (in DHI.Mike1D.ControlModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface ISensorDouble : ISensor<double>, 
	ISensor, IVariable, ITypedExpression, IExpressionAcceptor, IExpression<double>
Implements
IExpressionDouble, IExpressionAcceptor, ITypedExpression, IVariable, ISensor, ISensorDouble

Properties

ConversionFactor 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

ConversionOffset 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

Getter Getter used to extract the value of the sensor.

Not supported by all sensor types.


(Inherited from ISensorT)
Id Unique id
(Inherited from ISensor)
Name
(Inherited from IVariable)
ResultType
(Inherited from ITypedExpression)
TargetUnit Target unit, unit in which the sensor is supposed to return its value.

Only available for sensors returning a double value

Value
(Inherited from IVariable)

Methods

Accept``1
(Inherited from IExpressionAcceptor)
Evaluate
(Inherited from ITypedExpression)
TryEvaluate(UTP)
(Inherited from IExpressionDouble)
TryEvaluate(Object)
(Inherited from ITypedExpression)

See Also