C# Class Gurux.DLMS.Objects.GXDLMSClock

Inheritance: GXDLMSObject, IGXDLMSBase
Mostrar archivo Open project: Gurux/Gurux.DLMS.Net Class Usage Examples

Private Properties

Property Type Description
IGXDLMSBase byte[]
IGXDLMSBase int
IGXDLMSBase int[]
IGXDLMSBase object
IGXDLMSBase string[]

Public Methods

Method 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

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

Method Details

AdjustToMeasuringPeriod() public method

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
return byte[][]

AdjustToMinute() public method

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
return byte[][]

AdjustToPresetTime() public method

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
return byte[][]

AdjustToQuarter() public method

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
return byte[][]

GXDLMSClock() public method

Constructor.
public GXDLMSClock ( ) : System
return System

GXDLMSClock() public method

Constructor.
public GXDLMSClock ( string ln ) : System
ln string Logical Name of the object.
return System

GXDLMSClock() public method

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

GetDataType() public method

public GetDataType ( int index ) : DataType
index int
return DataType

GetUIDataType() public method

public GetUIDataType ( int index ) : DataType
index int
return DataType

GetValues() public method

public GetValues ( ) : object[]
return object[]

IGXDLMSBase() public method

public IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
settings Gurux.DLMS.GXDLMSSettings
e Gurux.DLMS.ValueEventArgs
return void

PresetAdjustingTime() public method

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
return byte[][]

ShiftTime() public method

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