- All Known Implementing Classes:
- MetaController, SimpleController
- public interface Controller
public void initialize(EventQueue eQ)
public void requestCar(Floor newFloor,
public void addCar(Car car,
public boolean arrive(Car car)
- To be called only once when a car arrives at a location. This allows the
controller to update any internal data structures that were keeping track
of where the car was going to.
car - The car that is arriving.
- Whether the car is going up after this arrival. Can be used to
set the direction light on the entrance.
public void setNextDestination(Car car)