C# 클래스 GSF.TimeSeries.Adapters.ActionAdapterBase

Represents the base class for action adapters.
This base class acts as a measurement concentrator which time aligns all incoming measurements for proper processing. Derived classes are expected to override ConcentratorBase.PublishFrame to handle time aligned measurements and call OnNewMeasurements for any new measurements that may get created.
상속: ConcentratorBase, IActionAdapter
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

Private Properties

프로퍼티 타입 설명
ExamineQueueState void
GenHashCode void
OnStatusMessage void
ResetStatistics void
SetInitializedState void
SetTemporalConstraint void
Start void
Stop void

공개 메소드들

메소드 설명
GetHashCode ( ) : int

Serves as a hash function for the current ActionAdapterBase.

GetShortStatus ( int maxLength ) : string

Gets a short one-line status of this ActionAdapterBase.

Initialize ( ) : void

Initializes ActionAdapterBase.

QueueMeasurementsForProcessing ( IEnumerable measurements ) : void

Queues a collection of measurements for processing. Measurements are automatically filtered to the defined IAdapter.InputMeasurementKeys.

Measurements are filtered against the defined InputMeasurementKeys.

보호된 메소드들

메소드 설명
ActionAdapterBase ( ) : System

Creates a new ActionAdapterBase.

Dispose ( bool disposing ) : void

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

OnConfigurationChanged ( ) : void

Raises ConfigurationChanged event.

OnInputMeasurementKeysUpdated ( ) : void

Raises InputMeasurementKeysUpdated event.

OnNewMeasurements ( ICollection measurements ) : void

Raises the NewMeasurements event.

OnOutputMeasurementsUpdated ( ) : void

Raises OutputMeasurementsUpdated event.

OnStatusMessage ( MessageLevel level, string status, string eventName = null, MessageFlags flags = MessageFlags.None ) : void

Raises the StatusMessage event and sends this data to the Logger.

should be a constant string value associated with what type of message is being generated. In general, there should only be a few dozen distinct event names per class. Exceeding this threshold will cause the EventName to be replaced with a general warning that a usage issue has occurred.

TryGetMinimumNeededMeasurements ( IFrame frame, IMeasurement &measurements ) : bool

Attempts to retrieve the minimum needed number of measurements from the frame (as specified by MinimumMeasurementsToUse)

Remember this function will *only* return the minimum needed number of measurements, no more. If you want to use all available measurements in your adapter you should just use Frame.Measurements.Values directly.

Note that the measurements array parameter will be created if the reference is null, otherwise if caller creates array it must be sized to MinimumMeasurementsToUse

비공개 메소드들

메소드 설명
ExamineQueueState ( ) : void
GenHashCode ( ) : void
OnStatusMessage ( string status ) : void
ResetStatistics ( ) : void
SetInitializedState ( bool initialized ) : void
SetTemporalConstraint ( string startTime, string stopTime, string constraintParameters ) : void
Start ( ) : void
Stop ( ) : void

메소드 상세

ActionAdapterBase() 보호된 메소드

Creates a new ActionAdapterBase.
protected ActionAdapterBase ( ) : System
리턴 System

Dispose() 보호된 메소드

Releases the unmanaged resources used by the ActionAdapterBase 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.
리턴 void

GetHashCode() 공개 메소드

Serves as a hash function for the current ActionAdapterBase.
public GetHashCode ( ) : int
리턴 int

GetShortStatus() 공개 메소드

Gets a short one-line status of this ActionAdapterBase.
public GetShortStatus ( int maxLength ) : string
maxLength int Maximum number of available characters for display.
리턴 string

Initialize() 공개 메소드

Initializes ActionAdapterBase.
public Initialize ( ) : void
리턴 void

OnConfigurationChanged() 보호된 메소드

Raises ConfigurationChanged event.
protected OnConfigurationChanged ( ) : void
리턴 void

OnInputMeasurementKeysUpdated() 보호된 메소드

Raises InputMeasurementKeysUpdated event.
protected OnInputMeasurementKeysUpdated ( ) : void
리턴 void

OnNewMeasurements() 보호된 메소드

Raises the NewMeasurements event.
protected OnNewMeasurements ( ICollection measurements ) : void
measurements ICollection
리턴 void

OnOutputMeasurementsUpdated() 보호된 메소드

Raises OutputMeasurementsUpdated event.
protected OnOutputMeasurementsUpdated ( ) : void
리턴 void

OnStatusMessage() 보호된 메소드

Raises the StatusMessage event and sends this data to the Logger.
should be a constant string value associated with what type of message is being generated. In general, there should only be a few dozen distinct event names per class. Exceeding this threshold will cause the EventName to be replaced with a general warning that a usage issue has occurred.
protected OnStatusMessage ( MessageLevel level, string status, string eventName = null, MessageFlags flags = MessageFlags.None ) : void
level MessageLevel The to assign to this message
status string New status message.
eventName string A fixed string to classify this event; defaults to null.
flags MessageFlags to use, if any; defaults to .
리턴 void

QueueMeasurementsForProcessing() 공개 메소드

Queues a collection of measurements for processing. Measurements are automatically filtered to the defined IAdapter.InputMeasurementKeys.
Measurements are filtered against the defined InputMeasurementKeys.
public QueueMeasurementsForProcessing ( IEnumerable measurements ) : void
measurements IEnumerable Collection of measurements to queue for processing.
리턴 void

TryGetMinimumNeededMeasurements() 보호된 메소드

Attempts to retrieve the minimum needed number of measurements from the frame (as specified by MinimumMeasurementsToUse)

Remember this function will *only* return the minimum needed number of measurements, no more. If you want to use all available measurements in your adapter you should just use Frame.Measurements.Values directly.

Note that the measurements array parameter will be created if the reference is null, otherwise if caller creates array it must be sized to MinimumMeasurementsToUse

protected TryGetMinimumNeededMeasurements ( IFrame frame, IMeasurement &measurements ) : bool
frame IFrame Source frame for the measurements
measurements IMeasurement Return array of measurements
리턴 bool