#include <Layer.hpp>
|
| | Layer (const LayerDescription &desc, const std::vector< std::string > &p_u, const Simulation_Time &s_t, feature_type &f, geojson::GeoJSON cd, long idx) |
| |
| | Layer (const LayerDescription &desc, const Simulation_Time &s_t, feature_type &f, long idx) |
| | Construct a minimum layer object.
|
| |
| virtual | ~Layer () |
| |
| time_t | next_timestep_epoch_time () |
| | Return the next timestep that will be processed by this layer in epoch time units.
|
| |
| time_t | current_timestep_epoch_time () |
| | Return the last timestep that was processed by this layer in epoch time units.
|
| |
| int | get_id () const |
| | Return the numeric id of this layer.
|
| |
| const std::string & | get_name () const |
| | Return the name of this layer.
|
| |
| const double | get_time_step () const |
| | Return this time_step interval used for this layer.
|
| |
| const std::string & | get_time_step_units () const |
| | Return the units for the time_step value of this layer.
|
| |
| virtual void | update_models (boost::span< double > catchment_outflows, std::unordered_map< std::string, int > &catchment_indexes, boost::span< double > nexus_downstream_flows, std::unordered_map< std::string, int > &nexus_indexes, int current_step) |
| | Run one simulation timestep for each model in this layer.
|
| |
◆ feature_type
◆ Layer() [1/2]
◆ Layer() [2/2]
Construct a minimum layer object.
- Parameters
-
◆ ~Layer()
| virtual ngen::Layer::~Layer |
( |
| ) |
|
|
inlinevirtual |
◆ current_timestep_epoch_time()
| time_t ngen::Layer::current_timestep_epoch_time |
( |
| ) |
|
|
inline |
◆ get_id()
| int ngen::Layer::get_id |
( |
| ) |
const |
|
inline |
◆ get_name()
| const std::string & ngen::Layer::get_name |
( |
| ) |
const |
|
inline |
◆ get_time_step()
| const double ngen::Layer::get_time_step |
( |
| ) |
const |
|
inline |
◆ get_time_step_units()
| const std::string & ngen::Layer::get_time_step_units |
( |
| ) |
const |
|
inline |
◆ next_timestep_epoch_time()
| time_t ngen::Layer::next_timestep_epoch_time |
( |
| ) |
|
|
inline |
◆ update_models()
| void ngen::Layer::update_models |
( |
boost::span< double > | catchment_outflows, |
|
|
std::unordered_map< std::string, int > & | catchment_indexes, |
|
|
boost::span< double > | nexus_downstream_flows, |
|
|
std::unordered_map< std::string, int > & | nexus_indexes, |
|
|
int | current_step ) |
|
virtual |
Run one simulation timestep for each model in this layer.
Reimplemented in ngen::DomainLayer, and ngen::SurfaceLayer.
References Simulation_Time::advance_timestep(), hy_features::HY_Features::catchment_at(), catchment_data, hy_features::HY_Features::destination_nexuses(), features, Simulation_Time::get_output_interval_seconds(), Simulation_Time::get_timestamp(), Simulation_Time::get_total_output_times(), Simulation_Time::next_timestep_index(), output_time_index, processing_units, simulation_time, and models::external::State_Exception::what().
Referenced by ngen::SurfaceLayer::update_models().
◆ catchment_data
◆ description
◆ features
◆ output_time_index
| long ngen::Layer::output_time_index |
|
protected |
◆ processing_units
| const std::vector<std::string> ngen::Layer::processing_units |
|
protected |
◆ simulation_time
The documentation for this class was generated from the following files: