|
|
vecInt | _unitIds |
| |
|
std::vector< std::unique_ptr< TimeSeriesData > > | _data |
| |
|
VariableType | _type |
| |
|
| static bool | Parse (const string &path, vector< TimeSeries * > &vecTimeSeries) |
| |
| static TimeSeries * | Create (const string &varName, const axd &time, const axi &ids, const axxd &data) |
| |
◆ AddData()
| void TimeSeriesDistributed::AddData |
( |
std::unique_ptr< TimeSeriesData > | data, |
|
|
int | unitId ) |
Add data to the time series.
- Parameters
-
| data | pointer to the time series data (ownership transferred). |
| unitId | ID of the unit. |
◆ AdvanceOneTimeStep()
| bool TimeSeriesDistributed::AdvanceOneTimeStep |
( |
| ) |
|
|
nodiscardoverridevirtual |
Advance the internal cursor to the next time step.
- Returns
- true if the cursor was successfully advanced to the next time step.
Implements TimeSeries.
◆ GetDataPointer()
Get the data pointer for the provided unit ID.
- Parameters
-
- Returns
- pointer to the time series data for the provided unit ID.
Implements TimeSeries.
◆ GetEnd()
| double TimeSeriesDistributed::GetEnd |
( |
| ) |
const |
|
overridevirtual |
Get the time end of the time series.
- Returns
- the time end of the time series.
Implements TimeSeries.
◆ GetStart()
| double TimeSeriesDistributed::GetStart |
( |
| ) |
const |
|
overridevirtual |
Get the time start of the time series.
- Returns
- the time start of the time series.
Implements TimeSeries.
◆ GetTotal()
| double TimeSeriesDistributed::GetTotal |
( |
const SettingsBasin * | basinSettings | ) |
|
|
overridevirtual |
Get the sum of the time series data for the provided basin settings.
- Parameters
-
| basinSettings | settings of the basin. |
- Returns
- the sum of the time series data.
Implements TimeSeries.
◆ IsDistributed()
| bool TimeSeriesDistributed::IsDistributed |
( |
| ) |
const |
|
inlineoverridevirtual |
Check if the time series is distributed.
- Returns
- true if the time series is distributed.
Implements TimeSeries.
◆ IsValid()
| bool TimeSeriesDistributed::IsValid |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Check if the time series is valid. Verifies that the time series has data and proper configuration.
- Returns
- true if the time series is valid, false otherwise.
Implements TimeSeries.
◆ SetCursorToDate()
| bool TimeSeriesDistributed::SetCursorToDate |
( |
double | date | ) |
|
|
nodiscardoverridevirtual |
Set the internal cursor to the provided date.
- Parameters
-
| date | date to set the cursor to. |
- Returns
- true if the cursor was successfully set to the provided date.
Implements TimeSeries.
◆ Validate()
| void TimeSeriesDistributed::Validate |
( |
| ) |
const |
|
overridevirtual |
Validate the time series. Throws an exception if the time series is invalid.
- Exceptions
-
Reimplemented from TimeSeries.
The documentation for this class was generated from the following files: