Aimsun Next API Simulation Control¶
Functions Related to Simulation Control¶
Get simulation control command¶
In C++ and Python¶
Explanation¶
Reads the last simulation control programmed by using the API.
Format¶
int ANGGetSimulationOrder( int * when )
Parameters¶
- when: Contains the time in seconds from the beginning of the simulation when the simulator will stop. It is only set when the last command programmed is StopAt.
Output¶
- 0: No control command programmed.
- 1: Cancel simulation.
- 2: Rewind simulation.
- 3: Stop simulation.
- 4: Stop At Simulation.
Set simulation control command¶
In C++ and Python¶
Explanation¶
Sets a new simulation control programmed using the API.
Format¶
void ANGSetSimulationOrder( int order, int when )
Parameters¶
-
order:
- 0: No control command programmed
- 1: Cancel simulation
- 2: Rewind simulation
- 3: Stop simulation
- 4: Stop At Simulation
-
when: Contains the seconds from the beginning of the simulation when the simulator will stop. It is only set when the new command is StopAt.
Output¶
None.