C# Class GSF.TimeSeries.FrameQueue

Represents a real-time queue of TrackingFrame instances used by the ConcentratorBase class.
Inheritance: IDisposable
Exibir arquivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears the FrameQueue.

Dispose ( ) : void

Releases all the resources used by the FrameQueue object.

ExamineQueueState ( int expectedMeasurements ) : string

Examines and returns the status of the FrameQueue.

GetFrame ( long ticks ) : GSF.TimeSeries.TrackingFrame

Gets TrackingFrame from the queue with the specified timestamp, in ticks. If no frame exists for the specified timestamp, one will be created.

Ticks can be any point in time so long time requested is greater than time of last published frame; this queue is used in a real-time scenario with time moving forward. If a frame is requested for an old timestamp, null will be returned. Note that frame returned will be "best-fit" for given timestamp based on FramesPerSecond.

Pop ( ) : void

Removes current Head frame from the FrameQueue after it has been processed and assigns a new Head.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the FrameQueue object and optionally releases the managed resources.

Private Methods

Method Description
FrameQueue ( CreateNewFrameFunction createNewFrame ) : System

Creates a new FrameQueue.

Method Details

Clear() public method

Clears the FrameQueue.
public Clear ( ) : void
return void

Dispose() public method

Releases all the resources used by the FrameQueue object.
public Dispose ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the FrameQueue object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

ExamineQueueState() public method

Examines and returns the status of the FrameQueue.
public ExamineQueueState ( int expectedMeasurements ) : string
expectedMeasurements int Number of expected measurements per frame.
return string

GetFrame() public method

Gets TrackingFrame from the queue with the specified timestamp, in ticks. If no frame exists for the specified timestamp, one will be created.
Ticks can be any point in time so long time requested is greater than time of last published frame; this queue is used in a real-time scenario with time moving forward. If a frame is requested for an old timestamp, null will be returned. Note that frame returned will be "best-fit" for given timestamp based on FramesPerSecond.
public GetFrame ( long ticks ) : GSF.TimeSeries.TrackingFrame
ticks long Timestamp, in ticks, for which to get or create .
return GSF.TimeSeries.TrackingFrame

Pop() public method

Removes current Head frame from the FrameQueue after it has been processed and assigns a new Head.
public Pop ( ) : void
return void