fern.simulation.controller
Class OrController
java.lang.Object
fern.simulation.controller.OrController
- All Implemented Interfaces:
- SimulationController
public class OrController
- extends Object
- implements SimulationController
Implements a SimulationController
composed of many SimulationController
.
If one controller tells to go on, the simulation will go on.
- Author:
- Florian Erhard
- See Also:
AndController
Method Summary |
boolean |
goOn(Simulator sim)
Returns whether or not to go on with the given simulation |
OrController
public OrController(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