C# 클래스 GSF.PhasorProtocols.SelFastMessage.CommandFrame

상속: CommandFrameBase
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
CommandFrame ( PhasorProtocols command, MessagePeriod messagePeriod ) : System

Creates a new CommandFrame from specified parameters.

This constructor is used by a consumer to generate an SEL Fast Message command frame.

CommandFrame ( byte buffer, int startIndex, int length ) : System

Creates a new CommandFrame from the given buffer.

This constructor is used by a consumer to parse a received SEL Fast Message command frame. Typically command frames are sent to a device. This constructor would used if this code was being used inside of a phasor measurement device.

GetObjectData ( SerializationInfo info, StreamingContext context ) : void

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

보호된 메소드들

메소드 설명
CalculateChecksum ( byte buffer, int offset, int length ) : ushort

Calculates checksum of given buffer.

CommandFrame ( SerializationInfo info, StreamingContext context ) : System

Creates a new CommandFrame from serialization parameters.

메소드 상세

CalculateChecksum() 보호된 메소드

Calculates checksum of given buffer.
protected CalculateChecksum ( byte buffer, int offset, int length ) : ushort
buffer byte Buffer image over which to calculate checksum.
offset int Start index into to calculate checksum.
length int Length of data within to calculate checksum.
리턴 ushort

CommandFrame() 공개 메소드

Creates a new CommandFrame from specified parameters.
This constructor is used by a consumer to generate an SEL Fast Message command frame.
public CommandFrame ( PhasorProtocols command, MessagePeriod messagePeriod ) : System
command PhasorProtocols The for this .
messagePeriod MessagePeriod The desired for SEL device connection.
리턴 System

CommandFrame() 보호된 메소드

Creates a new CommandFrame from serialization parameters.
protected CommandFrame ( 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

CommandFrame() 공개 메소드

Creates a new CommandFrame from the given buffer.
This constructor is used by a consumer to parse a received SEL Fast Message command frame. Typically command frames are sent to a device. This constructor would used if this code was being used inside of a phasor measurement device.
is not large enough to parse frame.
public CommandFrame ( byte buffer, int startIndex, int length ) : System
buffer byte Binary image to parse.
startIndex int Start index into to begin parsing.
length int Length of valid data within .
리턴 System

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