C# Класс Gurux.DLMS.Objects.GXDLMSClock

Наследование: GXDLMSObject, IGXDLMSBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
IGXDLMSBase byte[]
IGXDLMSBase int
IGXDLMSBase int[]
IGXDLMSBase object
IGXDLMSBase string[]

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : byte[]
IGXDLMSBase ( ) : int
IGXDLMSBase ( ) : int[]
IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : object
IGXDLMSBase ( ) : string[]

Описание методов

AdjustToMeasuringPeriod() публичный Метод

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
Результат byte[][]

AdjustToMinute() публичный Метод

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
Результат byte[][]

AdjustToPresetTime() публичный Метод

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
Результат byte[][]

AdjustToQuarter() публичный Метод

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
Результат byte[][]

GXDLMSClock() публичный Метод

Constructor.
public GXDLMSClock ( ) : System
Результат System

GXDLMSClock() публичный Метод

Constructor.
public GXDLMSClock ( string ln ) : System
ln string Logical Name of the object.
Результат System

GXDLMSClock() публичный Метод

Constructor.
public GXDLMSClock ( string ln, ushort sn ) : System
ln string Logical Name of the object.
sn ushort Short Name of the object.
Результат System

GetDataType() публичный Метод

public GetDataType ( int index ) : DataType
index int
Результат DataType

GetUIDataType() публичный Метод

public GetUIDataType ( int index ) : DataType
index int
Результат DataType

GetValues() публичный Метод

public GetValues ( ) : object[]
Результат object[]

IGXDLMSBase() публичный Метод

public IGXDLMSBase ( GXDLMSSettings settings, ValueEventArgs e ) : void
settings Gurux.DLMS.GXDLMSSettings
e Gurux.DLMS.ValueEventArgs
Результат void

PresetAdjustingTime() публичный Метод

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
Результат byte[][]

ShiftTime() публичный Метод

Shifts the time by n (-900 <= n <= 900) s.
public ShiftTime ( Gurux.DLMS.GXDLMSClient client, int time ) : byte[][]
client Gurux.DLMS.GXDLMSClient
time int
Результат byte[][]