
public class DefaultController extends Object implements SimulationController
SimulationController causing the simulation to stop after a given time.| Modifier and Type | Field and Description |
|---|---|
private double |
maxTime |
| Constructor and Description |
|---|
DefaultController(double maxTime)
Creates the controller for a given time where the simulation has to stop.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
goOn(StochasticSimulator process)
Returns whether or not to go on with the given simulation.
|
public DefaultController(double maxTime)
maxTime - the maximum time the simulation should run. Once the simulation time reaches this value, goOn()
will return false.public final boolean goOn(StochasticSimulator process)
SimulationControllergoOn in interface SimulationControllerprocess - the stochastic process this object is to control.Copyright © 2015 University of Glasgow. All rights reserved.