|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectro.polak.multilevelcarpark.controllers.BusyElement
ro.polak.multilevelcarpark.controllers.CarContainerController
public class CarContainerController
CarCointainer is the element placed at the end of CointarnerArm providing a mechanism to load/unload a car into it
| Constructor Summary | |
|---|---|
CarContainerController(ArmController parent)
The default constructor |
|
| Method Summary | |
|---|---|
Car |
dropCar()
Drops the car |
void |
free()
Frees the resources |
boolean |
hasCar()
Tells whenever the container contains a car |
void |
lock()
Locks the container |
void |
putCar(Car car)
Puts the car in the container |
void |
unlock()
Unlocks the container |
| 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 |
| Constructor Detail |
|---|
public CarContainerController(ArmController parent)
parent - | Method Detail |
|---|
public void lock()
throws IllegalOperationException
IllegalOperationException
public void unlock()
throws IllegalOperationException
IllegalOperationExceptionpublic boolean hasCar()
public void putCar(Car car)
throws IllegalOperationException
car -
IllegalOperationException
public Car dropCar()
throws IllegalOperationException
IllegalOperationExceptionpublic void free()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||