$darkmode
#include <simulation_sync.hpp>
Public Member Functions | |
| SimulationSync (const SimulationSync &)=default | |
| SimulationSync (SimulationSync &&)=delete | |
| SimulationSync & | operator= (const SimulationSync &)=default |
| SimulationSync & | operator= (SimulationSync &&)=delete |
| SimulationSync (const cloe::Duration &step_width) | |
| uint64_t | step () const override |
| cloe::Duration | step_width () const override |
| cloe::Duration | time () const override |
| cloe::Duration | eta () const override |
| double | realtime_factor () const override |
| double | achievable_realtime_factor () const override |
| void | increment_step () |
| void | set_realtime_factor (double s) |
| void | set_eta (cloe::Duration d) |
| void | reset () |
| void | set_cycle_time (cloe::Duration d) |
Public Member Functions inherited from cloe::Sync | |
| virtual bool | is_realtime_factor_unlimited () const |
SimulationSync is the synchronization context of the simulation.
|
inlineoverridevirtual |
Return the maximum theorically achievable simulation realtime factor, with 1.0 being realtime.
Implements cloe::Sync.
|
inlineoverridevirtual |
Return the estimated simulation time-of-arrival.
This is the time at which the simulation is stopped by a trigger, which could be "stop", "fail", or "restart". If no such ETA is known, zero is returned.
Implements cloe::Sync.
|
inline |
Increase the step number for the simulation.
|
inlineoverridevirtual |
Return the target simulation factor, with 1.0 being realtime.
Implements cloe::Sync.
|
inline |
Set the target realtime factor, with any value less or equal to zero unlimited.
|
inlineoverridevirtual |
Return the absolute simulation step number.
This value is monotonically increasing, and greater-or-equal to zero.
Implements cloe::Sync.
|
inlineoverridevirtual |
Return the atomic simulation step width.
This is the lowest-common-denominator of all models.
Implements cloe::Sync.
|
inlineoverridevirtual |
Return the simulation time.
Implements cloe::Sync.