C# Class Gurux.DLMS.Objects.GXDLMSClock

Inheritance: GXDLMSObject, IGXDLMSBase
Afficher le fichier Open project: Gurux/Gurux.DLMS.Net Class Usage Examples

Private Properties

Свойство Type Description
IGXDLMSBase byte[]
IGXDLMSBase int
IGXDLMSBase int[]
IGXDLMSBase object
IGXDLMSBase string[]

Méthodes publiques

Méthode Description
AdjustToMeasuringPeriod ( Gurux.DLMS.GXDLMSClient client ) : byte[][]

Sets the meter's time to the nearest (+/-) starting point of a measuring period.

AdjustToMinute ( Gurux.DLMS.GXDLMSClient client ) : byte[][]

Sets the meter's time to the nearest minute. If second_counter < 30 s, so second_counter is set to 0. If second_counter � 30 s, so second_counter is set to 0, and minute_counter and all depending clock values are incremented if necessary.

AdjustToPresetTime ( Gurux.DLMS.GXDLMSClient client ) : byte[][]

This Method is used in conjunction with the preset_adjusting_time Method. If the meter's time lies between validity_interval_start and validity_interval_end, then time is set to preset_time.

AdjustToQuarter ( Gurux.DLMS.GXDLMSClient client ) : byte[][]

Sets the meter's time to the nearest (+/-) quarter of an hour value (*:00, *:15, *:30, *:45).

GXDLMSClock ( ) : System

Constructor.

GXDLMSClock ( string ln ) : System

Constructor.

GXDLMSClock ( string ln, ushort sn ) : System

Constructor.

GetDataType ( int index ) : DataType
GetUIDataType ( int index ) : DataType
GetValues ( ) : object[]
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
PresetAdjustingTime ( Gurux.DLMS.GXDLMSClient client, System.DateTime presetTime, System.DateTime validityIntervalStart, System.DateTime validityIntervalEnd ) : byte[][]

Presets the time to a new value (preset_time) and defines a validity_interval within which the new time can be activated.

ShiftTime ( Gurux.DLMS.GXDLMSClient client, int time ) : byte[][]

Shifts the time by n (-900 <= n <= 900) s.

Private Methods

Méthode Description
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : byte[]
IGXDLMSBase ( ) : int
IGXDLMSBase ( ) : int[]
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : object
IGXDLMSBase ( ) : string[]

Method Details

AdjustToMeasuringPeriod() public méthode

Sets the meter's time to the nearest (+/-) starting point of a measuring period.
public AdjustToMeasuringPeriod ( Gurux.DLMS.GXDLMSClient client ) : byte[][]
client Gurux.DLMS.GXDLMSClient
Résultat byte[][]

AdjustToMinute() public méthode

Sets the meter's time to the nearest minute. If second_counter < 30 s, so second_counter is set to 0. If second_counter � 30 s, so second_counter is set to 0, and minute_counter and all depending clock values are incremented if necessary.
public AdjustToMinute ( Gurux.DLMS.GXDLMSClient client ) : byte[][]
client Gurux.DLMS.GXDLMSClient
Résultat byte[][]

AdjustToPresetTime() public méthode

This Method is used in conjunction with the preset_adjusting_time Method. If the meter's time lies between validity_interval_start and validity_interval_end, then time is set to preset_time.
public AdjustToPresetTime ( Gurux.DLMS.GXDLMSClient client ) : byte[][]
client Gurux.DLMS.GXDLMSClient
Résultat byte[][]

AdjustToQuarter() public méthode

Sets the meter's time to the nearest (+/-) quarter of an hour value (*:00, *:15, *:30, *:45).
public AdjustToQuarter ( Gurux.DLMS.GXDLMSClient client ) : byte[][]
client Gurux.DLMS.GXDLMSClient
Résultat byte[][]

GXDLMSClock() public méthode

Constructor.
public GXDLMSClock ( ) : System
Résultat System

GXDLMSClock() public méthode

Constructor.
public GXDLMSClock ( string ln ) : System
ln string Logical Name of the object.
Résultat System

GXDLMSClock() public méthode

Constructor.
public GXDLMSClock ( string ln, ushort sn ) : System
ln string Logical Name of the object.
sn ushort Short Name of the object.
Résultat System

GetDataType() public méthode

public GetDataType ( int index ) : DataType
index int
Résultat DataType

GetUIDataType() public méthode

public GetUIDataType ( int index ) : DataType
index int
Résultat DataType

GetValues() public méthode

public GetValues ( ) : object[]
Résultat object[]

IGXDLMSBase() public méthode

public IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
settings Gurux.DLMS.GXDLMSSettings
e Gurux.DLMS.ValueEventArgs
Résultat void

PresetAdjustingTime() public méthode

Presets the time to a new value (preset_time) and defines a validity_interval within which the new time can be activated.
public PresetAdjustingTime ( Gurux.DLMS.GXDLMSClient client, System.DateTime presetTime, System.DateTime validityIntervalStart, System.DateTime validityIntervalEnd ) : byte[][]
client Gurux.DLMS.GXDLMSClient
presetTime System.DateTime
validityIntervalStart System.DateTime
validityIntervalEnd System.DateTime
Résultat byte[][]

ShiftTime() public méthode

Shifts the time by n (-900 <= n <= 900) s.
public ShiftTime ( Gurux.DLMS.GXDLMSClient client, int time ) : byte[][]
client Gurux.DLMS.GXDLMSClient
time int
Résultat byte[][]