DlmsTypeLong Class

Represents a 16-bit signed integer.

Definition

Namespace: OddPrg.Protocols.DLMS
Assembly: OddPrg.Frames.Dlms (in OddPrg.Frames.Dlms.dll) Version: 2.0.0.24 (2.0.0.24)
C#
public class DlmsTypeLong : DlmsTypeSimple
Inheritance
Object    DlmsType    DlmsTypeSimple    DlmsTypeLong

Constructors

DlmsTypeLong Paramaterless constructor used by XmlSerializer
DlmsTypeLong(ByteBuffer) Initializes a new instance of the DlmsTypeLongUnsigned class. The value will be computed from the two first bytes of the rawData.
DlmsTypeLong(Int16) Initializes a new instance of the DlmsTypeLong class.
DlmsTypeLong(UInt16) Initializes a new instance of the DlmsTypeLong class.

Properties

TypeName Returns name of the type according to BB 4.1.5.
(Overrides DlmsTypeTypeName)
Value Represents current value of the object
ValueAsDateTime If it is possible returns a dat/time representation of the value.
(Inherited from DlmsType)
ValueAsDouble Returns a number representation of long value.
(Overrides DlmsTypeValueAsDouble)
ValueAsHexString Displays raw data as hex string. It is used to display variable names using SN referencing.
ValueAsInvariantString String representation of long value used to store a value in xml.
(Overrides DlmsTypeSimpleValueAsInvariantString)
ValueAsRawData Returns value as bytes that can be sent to the server (meter).
(Overrides DlmsTypeSimpleValueAsRawData)
ValueAsString Returns a string represenation for dispaying using current culture info.
(Overrides DlmsTypeValueAsString)
ValueIsDateTime This property should return true if ValueAsDateTime is available, otherwise it should return false.
(Inherited from DlmsType)
ValueIsMax Returns true if the value is equal to its maximal possible value which can indicate null for some meter types.
(Inherited from DlmsType)
ValueIsNumber Indicates that ValueAsDouble is available.
(Overrides DlmsTypeValueIsNumber)

Methods

ToString Returns string representation of the value. It returns ValueAsString.
(Inherited from DlmsType)

Fields

TYPE_ID COSEM type ID
VALUE_SIZE Size in bytes in raw data

See Also