TsBuffer Class |
Class that contains a number of timeseries. In case of more than one component needing access to the same timeseries file, it should only be opened once (performance/ressource issues). Hence, each component using a timeseries file should ask this timeseries buffer for the file and if it already exist in the buffer, that one will be used.
It also registers which items are currently used.
Each timeseries file is idenfitied by its full filepath name.
Namespace: DHI.Mike1D.Generic.TimeSeries
public class TsBuffer
The TsBuffer type exposes the following members.
Name | Description | |
---|---|---|
Count |
Return the number of TimeSeriesObjects in the buffer.
| |
TsBufferDataLoaded |
Return TRUE is the TsBuffer has not been loaded yet
|
Name | Description | |
---|---|---|
AppendItems |
Append items from other TsBuffer to this TsBuffer
| |
Contains |
Checks if a file is already in the buffer.
| |
DisposeAllBridges |
Dispose of internal data for all bridges. It will perform tasks like close down files
and database connections for all bridges.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadAll |
Loads data for all registered items in buffer. Data is not reloaded.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RegisteredFilePaths |
Return a list of all the filepaths registered in this buffer
| |
RegisterItem |
Register an item of an already registered TsCollection | |
RegisterTS(IFilePath, IDiagnostics) |
Register a timeseries file based on the filepath name. If file already
exist in buffer, the existing will be returned, otherwise it will
be added to the buffer and returned.
| |
RegisterTS(IFilePath, DiagnosticsValue, IDiagnostics) |
Register a timeseries file based on the filepath name. If file already
exist in buffer, the existing will be returned, otherwise it will
be added to the buffer and returned.
| |
RegisterTS(IFilePath, Int32, IDiagnostics) |
Register a timeseries file based on the filepath name. If file already
exist in buffer, the existing will be returned, otherwise it will
be added to the buffer and returned. The item is also registered for usage
| |
RegisterTS(IFilePath, Int32, eumQuantity, IDiagnostics) |
Register a timeseries file based on the filepath name. If file already
exist in buffer, the existing will be returned, otherwise it will
be added to the buffer and returned. The item is also registered for usage
| |
RegisterTS(IFilePath, Int32, Boolean, IDiagnostics) |
Register a timeseries file based on the filepath name. If file already
exist in buffer, the existing will be returned, otherwise it will
be added to the buffer and returned. The item is also registered for usage
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryLoadMissingHeaders |
Loads the header (tries to) for all TsCollections
in the buffer that has not yet loaded the header.
| |
UnregisterCollection |
Remove collection from TsBuffer
|