fern.simulation.controller
Class OrController

java.lang.Object
  extended by 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

Constructor Summary
OrController(SimulationController... controllers)
           
 
Method Summary
 boolean goOn(Simulator sim)
          Returns whether or not to go on with the given simulation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrController

public OrController(SimulationController... controllers)
Method Detail

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