C# 클래스 GSF.TimeSeries.Transport.TSSC.TsscDecoder

The decoder for the TSSC protocol.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ClearBitStream void
DecodePointID void
DecodeQuality uint
DecodeTimestamp long
ReadBit int
ReadBits4 int
ReadBits5 int

공개 메소드들

메소드 설명
Reset ( ) : void

Resets the TSSC Decoder to the initial state.

TSSC is a stateful encoder that requires a state of the previous data to be maintained. Therefore, if the state ever becomes corrupt (out of order, dropped, corrupted, or duplicated) the state must be reset on both ends.

SetBuffer ( byte data, int startingPosition, int length ) : void

Sets the internal buffer to read data from.

TryGetMeasurement ( ushort &id, long &timestamp, uint &quality, float &value ) : bool

Reads the next measurement from the stream. If the end of the stream has been encountered, return false.

TsscDecoder ( ) : System

Creates a decoder for the TSSC protocol.

비공개 메소드들

메소드 설명
ClearBitStream ( ) : void

Resets the stream so it can be reused. All measurements must be registered again.

DecodePointID ( int code, TsscPointMetadata lastPoint ) : void
DecodeQuality ( int code, TsscPointMetadata nextPoint ) : uint
DecodeTimestamp ( int code ) : long
ReadBit ( ) : int
ReadBits4 ( ) : int
ReadBits5 ( ) : int

메소드 상세

Reset() 공개 메소드

Resets the TSSC Decoder to the initial state.
TSSC is a stateful encoder that requires a state of the previous data to be maintained. Therefore, if the state ever becomes corrupt (out of order, dropped, corrupted, or duplicated) the state must be reset on both ends.
public Reset ( ) : void
리턴 void

SetBuffer() 공개 메소드

Sets the internal buffer to read data from.
public SetBuffer ( byte data, int startingPosition, int length ) : void
data byte
startingPosition int
length int
리턴 void

TryGetMeasurement() 공개 메소드

Reads the next measurement from the stream. If the end of the stream has been encountered, return false.
public TryGetMeasurement ( ushort &id, long &timestamp, uint &quality, float &value ) : bool
id ushort the id
timestamp long the timestamp in ticks
quality uint the quality
value float the value
리턴 bool

TsscDecoder() 공개 메소드

Creates a decoder for the TSSC protocol.
public TsscDecoder ( ) : System
리턴 System