Click or drag to resize

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.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface IDiagnosticsValue

The IDiagnosticsValue type exposes the following members.

Properties
  NameDescription
Public propertyDoubleValue
Double value. Use when HasUnitValue is true.
Public propertyHasUnitValue
Bool specifying whether this value has a unit.
Public propertyStringValue
Value as a string. Use when HasUnitValue is false.
Public propertyUnit
Unit for DoubleValue. Use when HasUnitValue is true.
Top
Methods
  NameDescription
Public methodToString
Convert value to a string representation.
Top
See Also