NGen
|
Simulation Time class providing time-series variables and methods to the model. More...
#include <Simulation_Time.hpp>
Public Member Functions | |
Simulation_Time (simulation_time_params simulation_time_config) | |
Constructor building a Simulation Time object. | |
Simulation_Time (const Simulation_Time &t, int interval) | |
int | get_total_output_times () |
Accessor to the total number of time steps. | |
int | get_output_interval_seconds () |
Accessor to the output_interval_seconds. | |
time_t | get_current_epoch_time () |
Accessor to the the current simulation time. | |
std::string | get_timestamp (int current_output_time_index) |
Accessor to the current timestamp string. | |
int | next_timestep_index (int epoch_time_seconds) |
int | next_timestep_index () |
time_t | next_timestep_epoch_time (int epoch_time_seconds) |
time_t | next_timestep_epoch_time () |
int | diff (const Simulation_Time &other) |
void | advance_timestep () |
move this simulation time object to represent the next time step as the current time | |
Private Attributes | |
int | total_output_times |
int | simulation_total_time_seconds |
int | output_interval_seconds |
time_t | start_date_time_epoch |
time_t | end_date_time_epoch |
time_t | current_date_time_epoch |
Simulation Time class providing time-series variables and methods to the model.
|
inline |
Constructor building a Simulation Time object.
start_date_time_epoch | |
end_date_time_epoch | |
current_date_time_epoch | |
output_interval_seconds |
Calculate total output_timess. Adding 1 to account for the first time output_time.
References end_date_time_epoch, output_interval_seconds, simulation_total_time_seconds, start_date_time_epoch, and total_output_times.
|
inline |
References output_interval_seconds, simulation_total_time_seconds, and total_output_times.
|
inline |
move this simulation time object to represent the next time step as the current time
References current_date_time_epoch, end_date_time_epoch, and output_interval_seconds.
Referenced by ngen::DomainLayer::update_models(), and ngen::Layer::update_models().
|
inline |
References start_date_time_epoch.
|
inline |
Accessor to the the current simulation time.
References current_date_time_epoch.
Referenced by ngen::Layer::current_timestep_epoch_time().
|
inline |
Accessor to the output_interval_seconds.
References output_interval_seconds.
Referenced by ngen::DomainLayer::update_models(), and ngen::Layer::update_models().
|
inline |
Accessor to the current timestamp string.
References current_date_time_epoch, output_interval_seconds, and start_date_time_epoch.
Referenced by ngen::DomainLayer::update_models(), ngen::Layer::update_models(), and ngen::SurfaceLayer::update_models().
|
inline |
Accessor to the total number of time steps.
References total_output_times.
Referenced by ngen::DomainLayer::update_models(), and ngen::Layer::update_models().
|
inline |
References current_date_time_epoch, and next_timestep_epoch_time().
Referenced by next_timestep_epoch_time().
|
inline |
References next_timestep_index(), output_interval_seconds, and start_date_time_epoch.
Referenced by ngen::Layer::next_timestep_epoch_time().
|
inline |
References current_date_time_epoch, and next_timestep_index().
Referenced by next_timestep_epoch_time(), and next_timestep_index().
|
inline |
References output_interval_seconds, and start_date_time_epoch.
Referenced by ngen::Layer::update_models().
|
private |
Referenced by advance_timestep(), get_current_epoch_time(), get_timestamp(), next_timestep_epoch_time(), and next_timestep_index().
|
private |
Referenced by Simulation_Time(), and advance_timestep().
|
private |
|
private |
Referenced by Simulation_Time(), and Simulation_Time().
|
private |
Referenced by Simulation_Time(), diff(), get_timestamp(), next_timestep_epoch_time(), and next_timestep_index().
|
private |
Referenced by Simulation_Time(), Simulation_Time(), and get_total_output_times().