TimeSeriesDataQueueT Properties |
The TimeSeriesDataQueueT generic type exposes the following members.
Name | Description | |
---|---|---|
Capacity |
Set or Get queue capacity (number of elements it can store) or size of sliding window if it is AutoStatic queue.
Note: if for non time period auto queue, you specify capacity equal to one then queue switch to SingleElement mode.
Note: if for non time period auto queue, you specify capacity not equal to one then queue switch to AutoStatic mode.
| |
Count |
Get the number of elements stored in container.
| |
First |
Get first(oldest) data element stored in container.
Note: if there is not elements in queue it returns DefaltValue.
(Inherited from HistoryDataQueueT.) | |
FirstDateTime |
Get first(oldest) data element DateTime stored in container.
Note: if there is not elements in queue it returns DefaltDateTime.
(Inherited from HistoryDataQueueT.) | |
Initialized |
This flag is set if and only if queue has already initialized (you already add something to it).
Note: you don't have to change Period or Capacity if queue already initialized.
| |
ItemDateTime |
Return historically latest element with smaller or equal DateTime.
Note: do not try to use this method if you didn't specify DateTime to data elements.
| |
ItemInt32 |
Get data which was store "index" steps ago.
| |
Last |
Get last data element stored in container.
Note: if there is not elements in queue it returns DefaltValue.
(Inherited from HistoryDataQueueT.) | |
LastDateTime |
Get last data element DateTime stored in container.
Note: if there is no elements in the queue it returns DefaultDateTime.
(Inherited from HistoryDataQueueT.) | |
NeedDateTime |
This flag is set if and only if queue need DateTime to be specified for data elements, which you intend to add.
| |
Period |
Set or Get time period, how long container will save elements (For AutoDynamic queue).
Note: As soon as you specify Time Period queue switch to Auto Dynamic mode.
| |
Previous |
Get previous data element stored in container.
Note: if there is such not elements in queue it returns DefaltValue.
(Inherited from HistoryDataQueueT.) | |
Ready |
Ready flag is set if and only if queue contain something.
(Inherited from HistoryDataQueueT.) | |
Type |
Return type of queue:
SingleElement: Queue store only one single element. (Useful as default method for indicators history storing)
ManualControl: Support all typical operations specific to Dequeue. (Useful for some custom work).
AutoStatic: Store all elements in sliding window specified by number elements to store. Automatically drop element when it out of the window.
AutoDynamic: Store all elements in sliding window specified by time period. Automatically drop element when it out of the window.
|