fern.simulation.controller
Class AndController
java.lang.Object
fern.simulation.controller.AndController
- All Implemented Interfaces:
- SimulationController
public class AndController
- extends Object
- implements SimulationController
Implements a SimulationController
composed of many SimulationController
.
If one controller tells to stop, the simulation will stop.
- Author:
- Florian Erhard
- See Also:
OrController
Method Summary |
boolean |
goOn(Simulator sim)
Returns whether or not to go on with the given simulation |
AndController
public AndController(SimulationController... controllers)
goOn
public boolean goOn(Simulator sim)
- Description copied from interface:
SimulationController
- Returns whether or not to go on with the given simulation
- Specified by:
goOn
in interface SimulationController
- Parameters:
sim
- simulation
- Returns:
- whether or not to go on