IDiagnosticsValue Interface

A diagnostics value can either be a string or a pair of a double value and a unit, depending on the value of HasUnitValue. An interface system has the opportunity to convert double values to user defined units. By default an engine ofte produce double values in SI units. If HasUnitValue is true, the DoubleValue and Unit must be set. If HasUnitValue is false, the StringValue must be set.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface IDiagnosticsValue

Properties

DoubleValue Double value. Use when HasUnitValue is true.
HasUnitValue Bool specifying whether this value has a unit.
StringValue Value as a string. Use when HasUnitValue is false.
Unit Unit for DoubleValue. Use when HasUnitValue is true.

Methods

ToString Convert value to a string representation.

See Also