ro.polak.multilevelcarpark.controllers
Class ElevatorController
java.lang.Object
ro.polak.multilevelcarpark.controllers.BusyElement
ro.polak.multilevelcarpark.controllers.ElevatorController
public class ElevatorController
- extends BusyElement
Arm lift is the element responsabile for changing the level
of the ContainerArm, ie adjusting the level
- Author:
- Piotr Polak
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
armController
public ArmController armController
- A ContainerArm attached to the ArmLift.
ElevatorController
public ElevatorController()
- The default constructor.
Constructs ContainerArm, places the lift at the ground floor.
moveToLevel
public void moveToLevel(int level)
- Moves elevator to requested level
- Parameters:
level - destination level
getCurrentLevel
public int getCurrentLevel()
- Returns the current level
- Returns:
- current level