DlmsType Class
Class that represents a DLMS/COSEM data type. Its descendatns are defined in BB 4.1.5.
It can be created from raw data returned by the server (meter). It should implement ToString for displaying value.
If it is possible it should also implement ValueAsDouble or ValueAsDateTime for storing data to ReadEn database.
Namespace: OddPrg.Protocols.DLMSAssembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
public abstract class DlmsType
- Inheritance
- Object DlmsType
- Derived
DlmsType |
Initializes a new instance of the class. Parameterless construcotr is used by XmlSerializer.
|
TypeName |
Name of the type according to BB 4.1.5.
|
ValueAsDateTime |
If it is possible returns a dat/time representation of the value.
|
ValueAsDouble |
If it is possible returns a number representation of the value. It could be applied also for integer values.
|
ValueAsString |
Returns a string representation of the data
|
ValueIsDateTime |
This property should return true if ValueAsDateTime is available, otherwise it should return false.
|
ValueIsMax |
Returns true if the value is equal to its maximal possible value which can indicate null for some meter types.
|
ValueIsNumber |
This property should return true if ValueAsDouble is available, otherwise it should return false.
It indicated if this value can be stored and treated as number.
|
GetTypeTag |
Returns the tag of the type defined in the BB
|
ToString |
Returns string representation of the value. It returns ValueAsString.
(Overrides ObjectToString) |