NGen
|
#include <SurfaceLayer.hpp>
Public Types | |
using | feature_type = hy_features::HY_Features |
Public Member Functions | |
SurfaceLayer (const LayerDescription &desc, const std::vector< std::string > &p_u, const Simulation_Time &s_t, feature_type &f, geojson::GeoJSON cd, long idx, const std::vector< std::string > &n_u, std::unordered_map< std::string, std::ofstream > &output_files) | |
void | update_models () override |
Run one simulation timestep for each model in this 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. | |
Protected Attributes | |
const LayerDescription | description |
const std::vector< std::string > | processing_units |
Simulation_Time | simulation_time |
feature_type & | features |
const geojson::GeoJSON | catchment_data |
long | output_time_index |
Private Attributes | |
std::vector< std::string > | nexus_ids |
std::unordered_map< std::string, std::ofstream > & | nexus_outfiles |
|
inherited |
|
inline |
|
inlineinherited |
Return the last timestep that was processed by this layer in epoch time units.
References Simulation_Time::get_current_epoch_time(), and ngen::Layer::simulation_time.
|
inlineinherited |
Return the numeric id of this layer.
References ngen::Layer::description, and ngen::LayerDescription::id.
|
inlineinherited |
Return the name of this layer.
References ngen::Layer::description, and ngen::LayerDescription::name.
|
inlineinherited |
Return this time_step interval used for this layer.
References ngen::Layer::description, and ngen::LayerDescription::time_step.
|
inlineinherited |
Return the units for the time_step value of this layer.
References ngen::Layer::description, and ngen::LayerDescription::time_step_units.
|
inlineinherited |
Return the next timestep that will be processed by this layer in epoch time units.
References Simulation_Time::next_timestep_epoch_time(), and ngen::Layer::simulation_time.
|
overridevirtual |
Run one simulation timestep for each model in this layer.
Run one simulation timestep for each model in this layer, then gather catchment output.
Reimplemented from ngen::Layer.
References ngen::Layer::features, HY_HydroNexus::get_downstream_flow(), HY_HydroNexus::get_receiving_catchments(), Simulation_Time::get_timestamp(), hy_features::HY_Features::nexus_at(), nexus_outfiles, hy_features::HY_Features::nexuses(), ngen::Layer::output_time_index, ngen::Layer::simulation_time, and ngen::Layer::update_models().
|
protectedinherited |
Referenced by ngen::Layer::update_models().
|
protectedinherited |
|
protectedinherited |
Referenced by ngen::Layer::update_models(), and update_models().
|
private |
|
private |
Referenced by update_models().
|
protectedinherited |
Referenced by ngen::DomainLayer::update_models(), ngen::Layer::update_models(), and update_models().
|
protectedinherited |
Referenced by ngen::Layer::update_models().
|
protectedinherited |