◆ AddAction()
bool ModelHydro::AddAction |
( |
Action * | action | ) |
|
Add an action to the model.
- Parameters
-
- Returns
- true if the action was added successfully.
◆ AddTimeSeries()
bool ModelHydro::AddTimeSeries |
( |
TimeSeries * | timeSeries | ) |
|
Add a time series to the model.
- Parameters
-
timeSeries | time series to add. |
- Returns
- true if the time series was added successfully.
◆ AttachTimeSeriesToHydroUnits()
bool ModelHydro::AttachTimeSeriesToHydroUnits |
( |
| ) |
|
Attach the time series to the hydro units.
- Returns
- true if the time series were attached successfully.
◆ ClearTimeSeries()
void ModelHydro::ClearTimeSeries |
( |
| ) |
|
◆ CreateTimeSeries()
bool ModelHydro::CreateTimeSeries |
( |
const string & | varName, |
|
|
const axd & | time, |
|
|
const axi & | ids, |
|
|
const axxd & | data ) |
Create a time series and add it to the model.
- Parameters
-
varName | name of the variable. |
time | time series data. |
ids | ids of the data. |
data | data to add. |
- Returns
- true if the time series was created and added successfully.
◆ DumpOutputs()
bool ModelHydro::DumpOutputs |
( |
const string & | path | ) |
|
Dump the outputs as betCDF file to the specified path.
- Parameters
-
path | path to dump the outputs. |
- Returns
- true if the dump was successful.
◆ ForcingLoaded()
bool ModelHydro::ForcingLoaded |
( |
| ) |
|
Check if the forcing data were loaded.
- Returns
- true if the forcing data were loaded.
◆ GetActionsManager()
Get the actions manager.
- Returns
- pointer to the actions manager.
◆ GetActionsNb()
int ModelHydro::GetActionsNb |
( |
| ) |
|
Get the number of actions in the model.
- Returns
- number of actions.
◆ GetLogger()
Logger * ModelHydro::GetLogger |
( |
| ) |
|
|
inline |
Get the logger.
- Returns
- pointer to the logger.
◆ GetOutletDischarge()
axd ModelHydro::GetOutletDischarge |
( |
| ) |
|
Get the outlet discharge series.
- Returns
- outlet discharge.
◆ GetProcessor()
Get the processor.
- Returns
- pointer to the processor.
◆ GetSporadicActionItemsNb()
int ModelHydro::GetSporadicActionItemsNb |
( |
| ) |
|
Get the number of sporadic action items in the model (i.e., actions that are not recursive).
- Returns
- number of sporadic action items.
◆ GetSubBasin()
Get the sub basin.
- Returns
- pointer to the sub basin.
◆ GetTimeMachine()
Get the time machine (timer).
- Returns
- pointer to the timer.
◆ GetTotalET()
double ModelHydro::GetTotalET |
( |
| ) |
|
Get the total amount of water lost by evapotranspiration.
- Returns
- total amount of water lost by evapotranspiration.
◆ GetTotalOutletDischarge()
double ModelHydro::GetTotalOutletDischarge |
( |
| ) |
|
Get the total outlet discharge.
- Returns
- total outlet discharge.
◆ GetTotalSnowStorageChanges()
double ModelHydro::GetTotalSnowStorageChanges |
( |
| ) |
|
Get the total change in snow storage.
- Returns
- total change in snow storage.
◆ GetTotalWaterStorageChanges()
double ModelHydro::GetTotalWaterStorageChanges |
( |
| ) |
|
Get the total change in water storage.
- Returns
- total change in water storage.
◆ Initialize()
Initialize the model.
- Parameters
-
modelSettings | settings of the model. |
basinSettings | settings of the basin. |
- Returns
- true if the initialization was successful.
◆ InitializeWithBasin()
Initialize the model along with the basin.
- Parameters
-
modelSettings | settings of the model. |
basinSettings | settings of the basin. |
- Returns
- true if the initialization was successful.
◆ IsOk()
bool ModelHydro::IsOk |
( |
| ) |
|
Check if the model is well-defined.
- Returns
- true if the model is well-defined.
◆ Reset()
void ModelHydro::Reset |
( |
| ) |
|
◆ Run()
Run the model.
- Returns
- true if the model run was successful.
◆ SaveAsInitialState()
void ModelHydro::SaveAsInitialState |
( |
| ) |
|
Save the model state as initial conditions.
◆ SetSubBasin()
void ModelHydro::SetSubBasin |
( |
SubBasin * | subBasin | ) |
|
|
inline |
Set the sub basin.
- Parameters
-
subBasin | pointer to the sub basin. |
◆ UpdateParameters()
void ModelHydro::UpdateParameters |
( |
SettingsModel & | modelSettings | ) |
|
Update the model parameters.
- Parameters
-
modelSettings | settings of the model. |
The documentation for this class was generated from the following files:
- /github/workspace/core/src/base/ModelHydro.h
- /github/workspace/core/src/base/ModelHydro.cpp