Simulation
Functions
Link copied to clipboard
Adds an OutputMonitor to this simulation.
Link copied to clipboard
Allows to access the current environment.
Link copied to clipboard
Allows to access a list of all the OutputMonitor currently attached to this simulation.
Link copied to clipboard
Executes a certain number of steps, then pauses it.
Link copied to clipboard
Executes the simulation until the target time is reached, then pauses it.
Link copied to clipboard
This method must get called in case a communication link connecting two nodes gets created during the simulation.
Link copied to clipboard
This method must get called in case a a communication link connecting two nodes gets broken during the simulation.
Link copied to clipboard
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).
Link copied to clipboard
Sends a pause command to the simulation.
Link copied to clipboard
Sends a play command to the simulation.
Link copied to clipboard
Adds a reaction during the simulation to the scheduler and start to execute it.
Link copied to clipboard
Removes a reaction during the simulation from the scheduler and stop to execute it.
Link copied to clipboard
Removes an OutputMonitor to this simulation.
Link copied to clipboard
Runs an existing Simulation in the current thread.
Link copied to clipboard
fun <T, P : Position<P>, Vector<P>> Simulation<T, P>.startSimulation(onceInitialized: (EuclideanEnvironment<T, P>) -> Unit = { }, atEachStep: (EuclideanEnvironment<T, P>, Actionable<T>?, Time, Long) -> Unit = { _, _, _, _ -> }, whenFinished: (EuclideanEnvironment<T, P>, Time, Long) -> Unit = { _, _, _ -> }, steps: Long = 10000): EuclideanEnvironment<T, P>
Run the simulation this environment owns.
Link copied to clipboard
Sends a terminate command to the simulation.
Link copied to clipboard
Link copied to clipboard
fun <T, P : Position<out P>> Simulation<T, P>.toGraphQLSimulationSurrogate(): SimulationSurrogate<T, P>
Converts a Simulation to a SimulationSurrogate.