Skip to content

Aimsun Next API Run Time Information

These functions acquire the times for the simulation.

  • Simulation time is the time from the start of the simulation including the warm up period.
  • Stationary time (i.e. with a fixed datum) is the clock time for the simulation.

Hence a simulation with a start time of 08:00:00 with a 15 minute warm up time has an initial time of 27900 (07:45:00) and at 08:30:00 in the simulation time will have a simulation time of 2700 (00:45:00) and a stationary time of 30600 (08:30:00).

Get Initial Run Time Simulation

In C++ and Python

Explanation

Get the initial simulation time in seconds from midnight.

Format
double AKIGetIniSimTime()
Parameters

None.

Output
  • > 0: Initial time.
  • < 0: Error.

Get End Run Time Simulation

In C++ and Python

Explanation

Get the end time for the simulation in seconds from midnight.

Format
double AKIGetEndSimTime()
Parameters

None.

Output
  • > 0: End time.
  • < 0: Error.

Get Transitory Time

In C++ and Python

Explanation

Get the duration of the warm up period simulation (seconds).

Format
double AKIGetDurationTransTime()
Parameters

None.

Output
  • > 0: Duration time.
  • < 0: Error.

Get Simulation Step

In C++ and Python

Explanation

Get the simulation step duration (seconds).

Format
double AKIGetSimulationStepTime()
Parameters

None.

Output
  • > 0: Simulation step.
  • < 0: Error.

Get Simulation Time

In C++ and Python

Explanation

Get the current simulation time (seconds).

Format
double AKIGetCurrentSimulationTime()
Parameters

None.

Output
  • > 0: The current Simulation Time, that is the number of seconds from the beginning of the simulation including the warm up period.
  • < 0: Error.

Get Stationary Time

In C++ and Python

Explanation

Get the current simulation time (in seconds from midnight).

Format
double AKIGetTimeSta();
Parameters

None.

Output
  • > 0: The current simulation clock time in seconds from midnight.
  • < 0: Error.

Set End Run Time Simulation

In C++ and Python

Explanation

Set the end run time (seconds).

Format
int AKISetEndSimTime( double atime )
Parameters
  • atime: The new end simulation time.
Output
  • = 0 No error.
  • < 0: Error.