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.

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

Properties

Description 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.

EumQuantity EumQuantity (item type and unit)
Id 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.
TimeValueType Type of value in time stored by the quantity.

Methods

Create Create a new quantity with the item and description provided. Factory method
Equals Compare quantities

See Also