![]() |
sumo-integrator
0.4.0-alpha4+201812051700
sumo-integrator is a C++ static library that provides abstract integration tools geared towards connecting SUMO with a (any) graphic engine(s).
|
Exposes facilities related to SUMO's simulation. More...
#include <include/sumo-integrator/core/Simulation.h>
Public Member Functions | |
void | tick () |
Run a step of SUMO's simulation. More... | |
void | tick (const double) |
Run SUMO's simulation up to a given time. More... | |
Exposes facilities related to SUMO's simulation.
Handles anything related to managing SUMO's simulation.
sumointegrator::Sumo
(sumointegrator::Sumo::simulation
). Inherits sumointegrator::Sumo::Concern.
void sumointegrator::Sumo::Simulation::tick | ( | ) |
Run a step of SUMO's simulation.
The length of the time simulated in the step depends on the value passed to SUMO with its --step-length
option.
DEBUG_DATA
- Simulation tick. void sumointegrator::Sumo::Simulation::tick | ( | const double | time | ) |
Run SUMO's simulation up to a given time.
This is useful in an asynchronous environment, where the client runs independently from SUMO and sends/requests updates at variable intervals. The client may tick at its own rate, and sync up only when needed by signalling SUMO to step through its simulation up to the current time.
--step-length
option.time
seconds (s)[in] | time | The time up to which SUMO should run its simulation. |
DEBUG_DATA
- Simulation tick.