reset (EventController)

Syntax

<Path>.reset

The method reset makes the EventController designated by <Path> execute all methods in your simulation model that are named reset. Plant Simulation deletes all unprocessed events, resets the simulation time to 0, resets the statistics, clears all failures of all objects, and sets all objects to the state planned.

Note that the request control, the receive control, and the release control of the Importer are not called when you reset the simulation.

Plant Simulation does not execute the Reset immediately, but only when all methods being executed at the moment have been executed all the way. This includes the method, which has triggered the Reset. The methods init and start behave like this as well.

Example

EventController.reset
EventController.start
EventController.RandomNumbersVariant := EventController.RandomNumbersVariant + 1
-- When this method has been executed all the way, the Eventcontroller will be reset.
-- When the reset phase has been finished all the way, the simulation will be started again.

Related Topics

Reset Simulation button in the EventController

Reset Simulation button in the EventDebugger

reset, method in SimTalk

ResetCtrl