ro.polak.multilevelcarpark.controllers
Class ArmController

java.lang.Object
  extended by ro.polak.multilevelcarpark.controllers.BusyElement
      extended by ro.polak.multilevelcarpark.controllers.ArmController

public class ArmController
extends BusyElement

ContainerArm is the element responsabile for rotating the CarContainer around the ArmLift axis

Author:
Piotr Polak

Field Summary
 CarContainerController carContainerController
          A CarContainer instance assigned to the ContainerArm.
 
Constructor Summary
ArmController(ElevatorController parent)
          The default constructor Constructs the carContainer, places the arm at the "get car gate"
 
Method Summary
 void extend()
          Extends the arm
 boolean isExtended()
          Tells whenever extended
 void rotateToPosition(int position)
          Rotated arm to the requested position
 void shrink()
          Shrinks the arm
 
Methods inherited from class ro.polak.multilevelcarpark.controllers.BusyElement
isBusy, makeBusy, makeFree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

carContainerController

public CarContainerController carContainerController
A CarContainer instance assigned to the ContainerArm.

Constructor Detail

ArmController

public ArmController(ElevatorController parent)
The default constructor Constructs the carContainer, places the arm at the "get car gate"

Method Detail

rotateToPosition

public void rotateToPosition(int position)
                      throws IllegalOperationException
Rotated arm to the requested position

Parameters:
position -
Throws:
IllegalOperationException

extend

public void extend()
            throws IllegalOperationException
Extends the arm

Throws:
IllegalOperationException

shrink

public void shrink()
            throws IllegalOperationException
Shrinks the arm

Throws:
IllegalOperationException

isExtended

public boolean isExtended()
Tells whenever extended

Returns:
isExtended