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

Represents the base class for any incoming input adapter.
Derived classes are expected to call OnNewMeasurements when new measurements are received.
상속: AdapterBase, IInputAdapter
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
Initialize ( ) : void

Initializes InputAdapterBase.

Start ( ) : void

Starts this InputAdapterBase and initiates connection cycle to data input source.

Stop ( ) : void

Stops this InputAdapterBase and disconnects from data input source.

보호된 메소드들

메소드 설명
AttemptConnection ( ) : void

Attempts to connect to data input source.

Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.

AttemptDisconnection ( ) : void

Attempts to disconnect from data input source.

Derived classes should attempt disconnect from data input source here. Any exceptions thrown by this implementation will be reported to host via AdapterBase.ProcessException event.

Dispose ( bool disposing ) : void

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

InputAdapterBase ( ) : System

Constructs a new instance of the InputAdapterBase.

OnConnected ( ) : void

Called when data input source connection is established.

Derived classes should call this method manually if UseAsyncConnect is true.

OnDisconnected ( ) : void

Called when data input source is disconnected.

Derived classes should call this method manually if UseAsyncConnect is true.

OnNewMeasurements ( ICollection measurements ) : void

Raises the NewMeasurements event.

OnProcessingComplete ( ) : void

Raises the ProcessingComplete event.

비공개 메소드들

메소드 설명
AttemptConnectionOperation ( ) : void
m_connectionTimer_Elapsed ( object sender, EventArgs e ) : void

메소드 상세

AttemptConnection() 보호된 추상적인 메소드

Attempts to connect to data input source.
Derived classes should attempt connection to data input source here. Any exceptions thrown by this implementation will result in restart of the connection cycle.
protected abstract AttemptConnection ( ) : void
리턴 void

AttemptDisconnection() 보호된 추상적인 메소드

Attempts to disconnect from data input source.
Derived classes should attempt disconnect from data input source here. Any exceptions thrown by this implementation will be reported to host via AdapterBase.ProcessException event.
protected abstract AttemptDisconnection ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used by the InputAdapterBase 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

Initialize() 공개 메소드

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

InputAdapterBase() 보호된 메소드

Constructs a new instance of the InputAdapterBase.
protected InputAdapterBase ( ) : System
리턴 System

OnConnected() 보호된 메소드

Called when data input source connection is established.
Derived classes should call this method manually if UseAsyncConnect is true.
protected OnConnected ( ) : void
리턴 void

OnDisconnected() 보호된 메소드

Called when data input source is disconnected.
Derived classes should call this method manually if UseAsyncConnect is true.
protected OnDisconnected ( ) : void
리턴 void

OnNewMeasurements() 보호된 메소드

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

OnProcessingComplete() 보호된 메소드

Raises the ProcessingComplete event.
protected OnProcessingComplete ( ) : void
리턴 void

Start() 공개 메소드

Starts this InputAdapterBase and initiates connection cycle to data input source.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops this InputAdapterBase and disconnects from data input source.
public Stop ( ) : void
리턴 void