|
int | m_cursor |
|
axd | m_time |
|
bool | m_recordFractions |
|
vecStr | m_subBasinLabels |
|
axd | m_subBasinInitialValues |
|
vecAxd | m_subBasinValues |
|
vecDoublePt | m_subBasinValuesPt |
|
vecInt | m_hydroUnitIds |
|
axd | m_hydroUnitAreas |
|
vecStr | m_hydroUnitLabels |
|
vecAxd | m_hydroUnitInitialValues |
|
vecAxxd | m_hydroUnitValues |
|
vector< vecDoublePt > | m_hydroUnitValuesPt |
|
vecStr | m_hydroUnitFractionLabels |
|
vecAxxd | m_hydroUnitFractions |
|
vector< vecDoublePt > | m_hydroUnitFractionsPt |
|
◆ DumpOutputs()
bool Logger::DumpOutputs |
( |
const string & | path | ) |
|
Dump the outputs to a file.
- Parameters
-
path | path to the output file. |
- Returns
- true if the dump was successful, false otherwise.
◆ GetHydroUnitsFinalStorageState()
double Logger::GetHydroUnitsFinalStorageState |
( |
const string & | tag | ) |
|
Get the final storage state of a hydro unit for a given tag.
- Parameters
-
- Returns
- final storage state.
◆ GetHydroUnitsInitialStorageState()
double Logger::GetHydroUnitsInitialStorageState |
( |
const string & | tag | ) |
|
Get the initial storage state of a hydro unit for a given tag.
- Parameters
-
- Returns
- initial storage state.
◆ GetHydroUnitValues()
const vecAxxd & Logger::GetHydroUnitValues |
( |
| ) |
|
|
inline |
Get all the hydro unit values.
- Returns
- vector of hydro unit values.
◆ GetIndicesForHydroUnitElements()
vecInt Logger::GetIndicesForHydroUnitElements |
( |
const string & | item | ) |
|
Get the indices of the hydro unit elements for a given item.
- Parameters
-
- Returns
- vector of indices.
◆ GetIndicesForSubBasinElements()
vecInt Logger::GetIndicesForSubBasinElements |
( |
const string & | item | ) |
|
Get the indices of the sub-basin elements for a given item.
- Parameters
-
- Returns
- vector of indices.
◆ GetOutletDischarge()
axd Logger::GetOutletDischarge |
( |
| ) |
|
Get the outlet discharge series.
- Returns
- outlet discharge series.
◆ GetSubBasinFinalStorageState()
double Logger::GetSubBasinFinalStorageState |
( |
const string & | tag | ) |
|
Get the final storage state of a sub-basin for a given tag.
- Parameters
-
- Returns
- final storage state.
◆ GetSubBasinInitialStorageState()
double Logger::GetSubBasinInitialStorageState |
( |
const string & | tag | ) |
|
Get the initial storage state of a sub-basin for a given tag.
- Parameters
-
- Returns
- initial storage state.
◆ GetSubBasinValues()
const vecAxd & Logger::GetSubBasinValues |
( |
| ) |
|
|
inline |
Get all the sub-basin values.
- Returns
- vector of sub-basin values.
◆ GetTotalET()
double Logger::GetTotalET |
( |
| ) |
|
Get the total ET over time.
- Returns
- total ET.
◆ GetTotalGlacierStorageChanges()
double Logger::GetTotalGlacierStorageChanges |
( |
| ) |
|
Get the total glacier storage changes over time.
- Returns
- total glacier storage changes.
◆ GetTotalHydroUnits()
double Logger::GetTotalHydroUnits |
( |
const string & | item, |
|
|
bool | needsAreaWeighting = false ) |
Get the sum of hydro unit values for a given item.
- Parameters
-
item | item to search for. |
needsAreaWeighting | if true, area weighting is applied. |
- Returns
- total value.
◆ GetTotalOutletDischarge()
double Logger::GetTotalOutletDischarge |
( |
| ) |
|
Get the total outlet discharge over time.
- Returns
- total outlet discharge.
◆ GetTotalSnowStorageChanges()
double Logger::GetTotalSnowStorageChanges |
( |
| ) |
|
Get the total snow storage changes over time.
- Returns
- total snow storage changes.
◆ GetTotalSubBasin()
double Logger::GetTotalSubBasin |
( |
const string & | item | ) |
|
Get the sum of a sub-basin values for a given item.
- Parameters
-
- Returns
- total value.
◆ GetTotalWaterStorageChanges()
double Logger::GetTotalWaterStorageChanges |
( |
| ) |
|
Get the total water storage changes over time.
- Returns
- total water storage changes.
◆ Increment()
void Logger::Increment |
( |
| ) |
|
Increment the cursor to the next time step.
◆ InitContainers()
Initialize the logger with the size of the time vector and the sub-basin object.
- Parameters
-
timeSize | size of the time vector. |
subBasin | pointer to the sub-basin object. |
modelSettings | settings of the model. |
◆ Record()
Record the current values in the logger.
◆ RecordFractions()
void Logger::RecordFractions |
( |
| ) |
|
|
inline |
Activate the recording of fractions.
◆ Reset()
◆ SaveInitialValues()
void Logger::SaveInitialValues |
( |
| ) |
|
Save the current values as initial values.
◆ SetDate()
void Logger::SetDate |
( |
double | date | ) |
|
Set the date in the logger.
- Parameters
-
◆ SetHydroUnitFractionPointer()
void Logger::SetHydroUnitFractionPointer |
( |
int | iUnit, |
|
|
int | iLabel, |
|
|
double * | valPt ) |
Set a hydro unit fraction pointer in the logger array.
- Parameters
-
iUnit | index of the hydro unit. |
iLabel | index of the hydro unit label. |
valPt | pointer to the value. |
◆ SetHydroUnitValuePointer()
void Logger::SetHydroUnitValuePointer |
( |
int | iUnit, |
|
|
int | iLabel, |
|
|
double * | valPt ) |
Set a hydro unit value pointer in the logger array.
- Parameters
-
iUnit | index of the hydro unit. |
iLabel | index of the hydro unit label. |
valPt | pointer to the value. |
◆ SetSubBasinValuePointer()
void Logger::SetSubBasinValuePointer |
( |
int | iLabel, |
|
|
double * | valPt ) |
Set a sub-basin value pointer in the logger array.
- Parameters
-
iLabel | index of the sub-basin label. |
valPt | pointer to the value. |
The documentation for this class was generated from the following files:
- /github/workspace/core/src/base/Logger.h
- /github/workspace/core/src/base/Logger.cpp