Batch Engine
Constructors
Functions
Adds an OutputMonitor to this simulation.
Allows to access a list of all the OutputMonitor currently attached to this simulation.
Executes a certain number of steps, then pauses it.
Executes the simulation until the target time is reached, then pauses it.
This method must get called in case a communication link connecting two nodes gets created during the simulation. This method provides dependency and scheduling times re-computation for all the reactions interested in such change.
This method must get called in case a communication link connecting two nodes gets broken during the simulation. This method provides dependency and scheduling times re-computation for all the reactions interested in such change.
This method must get called in case a node is added to the environment during the simulation and after its neighborhood has been computed (or can be consistently computed by the simulated environment). This method provides dependency computation and is responsible of correctly scheduling the Node's new reactions.
This method must get called in case a node is moved in the environment during the simulation and after its neighborhood has been computed (or can be consistently computed by the simulated environment). This method provides dependency computation and is responsible of correctly scheduling the Node's reactions.
This method must get called in case a node is removed from the environment during the simulation and after its neighborhood has been computed (or can be consistently computed by the simulated environment). This method provides dependency computation and is responsible of correctly removing the Node's reactions from the scheduler.
Sends a pause command to the simulation. There is no guarantee on when this command will be actually processed.
Sends a play command to the simulation. There is no guarantee on when this command will be actually processed.
Adds a reaction during the simulation to the scheduler and start to execute it. The reaction addition is not propagated in the Node entity. To do that call also the method addReaction.
Removes a reaction during the simulation from the scheduler and stop to execute it. The reaction removal is not propagated in the Node entity. To do that call also the method removeReaction.
Removes an OutputMonitor to this simulation. If the OutputMonitor was not among those already added, this method does nothing.
Runs an existing Simulation in the current thread.
Schedules a runnable to be executed by the Simulation thread, useful for synchronization purposes (e.g. make sure that the environment is not being changed while the requested operation is being executed). An exception thrown by the passed runnable will make the simulation terminate.
Run the simulation this environment owns.
Sends a terminate command to the simulation. There is no guarantee on when this command will be actually processed.
Converts a Simulation to a SimulationSurrogate.