Click or drag to resize

IQuantity Interface

A data quantity is a combination of an ID and an EUM item and unit.

The data item type is one of the EUM types

For AD components, they will usually have the same datatype but different ID's.

It is not allowed to edit an IQuantity. Create a new one, if required.

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 IQuantity : IEquatable<IQuantity>

The IQuantity type exposes the following members.

Properties
  NameDescription
Public propertyDescription
Name/Description of the quantity. The description is used to distinguish between the same type of quantity on different sources.

For instance, the quantity with Id DischargeInStructure uses the description to identity the structure. This is necessary since several structures can occupy the same location (quantities are usually identified by their location in the result file).

NOTE: Two quantities with different descriptions but equal Ids are equal when compared.

Public propertyEumQuantity
EumQuantity (item type and unit)
Public propertyId
ID of the quantity. The ID is unique for a specific type of quantity within MIKE 1D. Two quantities with different Ids are not equal to each other.
Public propertyTimeValueType
Type of value in time stored by the quantity.
Top
Methods
  NameDescription
Public methodCreate
Create a new quantity with the item and description provided. Factory method
Public methodEquals
Compare quantities
Top
See Also