$darkmode
#include <sync.hpp>
Public Member Functions | |
| virtual uint64_t | step () const =0 |
| virtual Duration | step_width () const =0 |
| virtual Duration | time () const =0 |
| virtual Duration | eta () const =0 |
| virtual double | realtime_factor () const =0 |
| virtual bool | is_realtime_factor_unlimited () const |
| virtual double | achievable_realtime_factor () const =0 |
Friends | |
| void | to_json (fable::Json &j, const Sync &s) |
Sync is the synchronization context of the simulation.
|
pure virtual |
Return the maximum theorically achievable simulation realtime factor, with 1.0 being realtime.
Implemented in engine::SimulationSync.
|
pure virtual |
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.
Implemented in engine::SimulationSync.
|
inlinevirtual |
Return true if there is no target realtime factor, i.e., the simulation runs as fast as possible.
|
pure virtual |
Return the target simulation factor, with 1.0 being realtime.
Implemented in engine::SimulationSync.
|
pure virtual |
Return the absolute simulation step number.
This value is monotonically increasing, and greater-or-equal to zero.
Implemented in engine::SimulationSync.
|
pure virtual |
Return the atomic simulation step width.
This is the lowest-common-denominator of all models.
Implemented in engine::SimulationSync.
|
pure virtual |
Return the simulation time.
Implemented in engine::SimulationSync.
|
friend |
Write the JSON representation into j.
Write the JSON representation of Sync into j.