Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all the resources used by the ConcentratorBase object.
|
|
MillisecondsFromRealTime ( Ticks timestamp ) : double |
Returns the deviation, in milliseconds, that the given number of ticks is from real-time (i.e., ConcentratorBase.RealTime).
|
|
ResetStatistics ( ) : void |
Resets the statistics of the concentrator.
|
|
SecondsFromRealTime ( Ticks timestamp ) : double |
Returns the deviation, in seconds, that the given number of ticks is from real-time (i.e., ConcentratorBase.RealTime).
|
|
SortMeasurement ( IMeasurement measurement ) : void |
Sorts the IMeasurement placing the data point in its proper IFrame.
|
|
SortMeasurements ( IEnumerable |
Sorts each IMeasurement placing each data point in its proper IFrame.
|
|
Start ( ) : void |
Starts the concentrator, if it is not already running. Concentrator must be started by calling ConcentratorBase.Start method or setting |
|
Stop ( ) : void |
Stops the concentrator.
|
Method | Description | |
---|---|---|
AssignMeasurementToFrame ( IFrame frame, IMeasurement measurement ) : void |
Assigns IMeasurement to its associated IFrame. Derived classes can choose to override this method to handle custom assignment of a IMeasurement to its IFrame. Default behavior simply assigns measurement to frame's keyed measurement dictionary: |
|
ConcentratorBase ( ) : System |
Creates a new ConcentratorBase. Concentration will not begin until consumer "Starts" concentrator (i.e., calling ConcentratorBase.Start method or setting |
|
ConcentratorBase ( int framesPerSecond, double lagTime, double leadTime ) : System |
Creates a new ConcentratorBase from specified parameters. framesPerSecond must be greater then 0. lagTime must be greater than zero, but can be specified in sub-second intervals (e.g., set to .25 for a quarter-second lag time). Note that this defines time sensitivity to past timestamps. leadTime must be greater than zero, but can be specified in sub-second intervals (e.g., set to .5 for a half-second lead time). Note that this defines time sensitivity to future timestamps. Concentration will not begin until consumer "Starts" concentrator (i.e., calling ConcentratorBase.Start method or setting |
|
CreateNewFrame ( Ticks timestamp ) : IFrame |
Creates a new IFrame for the given timestamp. Derived classes can override this method to create a new custom IFrame. Default behavior creates a basic Frame to hold synchronized measurements. |
|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the ConcentratorBase object and optionally releases the managed resources.
|
|
OnDiscardingMeasurements ( IEnumerable |
Raises the DiscardingMeasurements event. Allows derived classes to raise a discarding measurements event. |
|
OnProcessException ( MessageLevel level, |
Raises the ProcessException event. |
|
OnUnpublishedSamples ( int seconds ) : void |
Raises the UnpublishedSamples event.
|
|
PublishFrame ( IFrame frame, int index ) : void |
Publish IFrame of time-aligned collection of IMeasurement values that arrived within the concentrator's defined ConcentratorBase.LagTime. If user implemented publication function consistently exceeds available publishing time (i.e., |
Method | Description | |
---|---|---|
AttachToFrameRateTimer ( int framesPerSecond, int processingInterval ) : void | ||
DetachFromFrameRateTimer ( int framesPerSecond, int processingInterval ) : void | ||
MonitorUnpublishedSamples ( object sender, EventArgs |
||
OnProcessException ( |
||
PublishFrames ( ) : void | ||
StartFramePublication ( object sender, |
protected AssignMeasurementToFrame ( IFrame frame, IMeasurement measurement ) : void | ||
frame | IFrame | The |
measurement | IMeasurement | The type of |
return | void |
protected ConcentratorBase ( int framesPerSecond, double lagTime, double leadTime ) : System | ||
framesPerSecond | int | Number of frames to publish per second. |
lagTime | double | Past time deviation tolerance, in seconds - this becomes the amount of time to wait before publishing begins. |
leadTime | double | Future time deviation tolerance, in seconds - this becomes the tolerated +/- accuracy of the local clock to real-time. |
return | System |
protected CreateNewFrame ( Ticks timestamp ) : IFrame | ||
timestamp | Ticks | Timestamp for new |
return | IFrame |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public MillisecondsFromRealTime ( Ticks timestamp ) : double | ||
timestamp | Ticks | Timestamp to calculate distance from real-time. |
return | double |
protected OnDiscardingMeasurements ( IEnumerable |
||
measurements | IEnumerable |
Enumeration of |
return | void |
protected OnProcessException ( MessageLevel level, |
||
level | MessageLevel | The |
exception | Processing |
|
eventName | string | A fixed string to classify this event; defaults to |
flags | MessageFlags | |
return | void |
protected OnUnpublishedSamples ( int seconds ) : void | ||
seconds | int | Total number of unpublished seconds of data. |
return | void |
protected abstract PublishFrame ( IFrame frame, int index ) : void | ||
frame | IFrame | |
index | int | Index of |
return | void |
public SecondsFromRealTime ( Ticks timestamp ) : double | ||
timestamp | Ticks | Timestamp to calculate distance from real-time. |
return | double |
public SortMeasurement ( IMeasurement measurement ) : void | ||
measurement | IMeasurement | |
return | void |
public SortMeasurements ( IEnumerable |
||
measurements | IEnumerable |
Collection of |
return | void |