C# Класс GSF.PhasorProtocols.IEC61850_90_5.DigitalDefinition

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

Private Properties

Свойство Тип Описание
CreateNewDefinition IDigitalDefinition
ParseConversionFactor int

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

Метод Описание
DigitalDefinition ( GSF.PhasorProtocols.IEC61850_90_5.ConfigurationCell parent, string label, ushort normalStatus, ushort validInputs ) : System

Creates a new DigitalDefinition from specified parameters.

DigitalDefinition ( IConfigurationCell parent ) : System

Creates a new DigitalDefinition.

GetLabel ( int index ) : string

Gets the individual labels for specified bit in this DigitalDefinition.

In the final version of the protocol each digital bit can be labeled, but we read them out as one big string in the "Label" property so this property allows individual access to each label.

Note that the draft 6 implementation of the protocol supports one label for all 16-bits, however draft 7 (i.e., version 1) supports a label for each of the 16 bits.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

Populates a SerializationInfo with the data needed to serialize the target object.

SetLabel ( int index, string value ) : void

Sets the individual labels for specified bit in this DigitalDefinition.

In the final version of the protocol each digital bit can be labeled, but we read them out as one big string in the "Label" property so this property allows individual access to each label.

Note that the draft 6 implementation of the protocol supports one label for all 16-bits, however draft 7 (i.e., version 1) supports a label for each of the 16 bits.

Защищенные методы

Метод Описание
DigitalDefinition ( SerializationInfo info, StreamingContext context ) : System

Creates a new DigitalDefinition from serialization parameters.

ParseBodyImage ( byte buffer, int startIndex, int length ) : int

Parses the binary body image.

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

Метод Описание
CreateNewDefinition ( IConfigurationCell parent, byte buffer, int startIndex, int &parsedLength ) : IDigitalDefinition
ParseConversionFactor ( byte buffer, int startIndex ) : int

Parses conversion factor image from the specified buffer.

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

DigitalDefinition() публичный метод

Creates a new DigitalDefinition from specified parameters.
public DigitalDefinition ( GSF.PhasorProtocols.IEC61850_90_5.ConfigurationCell parent, string label, ushort normalStatus, ushort validInputs ) : System
parent GSF.PhasorProtocols.IEC61850_90_5.ConfigurationCell The parent of this .
label string The label of this .
normalStatus ushort The normal status for this .
validInputs ushort The valid input for this .
Результат System

DigitalDefinition() публичный метод

Creates a new DigitalDefinition.
public DigitalDefinition ( IConfigurationCell parent ) : System
parent IConfigurationCell The parent of this .
Результат System

DigitalDefinition() защищенный метод

Creates a new DigitalDefinition from serialization parameters.
protected DigitalDefinition ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo The with populated with data.
context System.Runtime.Serialization.StreamingContext The source for this deserialization.
Результат System

GetLabel() публичный метод

Gets the individual labels for specified bit in this DigitalDefinition.

In the final version of the protocol each digital bit can be labeled, but we read them out as one big string in the "Label" property so this property allows individual access to each label.

Note that the draft 6 implementation of the protocol supports one label for all 16-bits, however draft 7 (i.e., version 1) supports a label for each of the 16 bits.

public GetLabel ( int index ) : string
index int Index of desired bit label to access.
Результат string

GetObjectData() публичный метод

Populates a SerializationInfo with the data needed to serialize the target object.
public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo The to populate with data.
context System.Runtime.Serialization.StreamingContext The destination for this serialization.
Результат void

ParseBodyImage() защищенный метод

Parses the binary body image.
protected ParseBodyImage ( byte buffer, int startIndex, int length ) : int
buffer byte Binary image to parse.
startIndex int Start index into to begin parsing.
length int Length of valid data within .
Результат int

SetLabel() публичный метод

Sets the individual labels for specified bit in this DigitalDefinition.

In the final version of the protocol each digital bit can be labeled, but we read them out as one big string in the "Label" property so this property allows individual access to each label.

Note that the draft 6 implementation of the protocol supports one label for all 16-bits, however draft 7 (i.e., version 1) supports a label for each of the 16 bits.

public SetLabel ( int index, string value ) : void
index int Index of desired bit label to access.
value string Value of the bit label to assign.
Результат void