ro.polak.multilevelcarpark.controllers
Class BusyElement

java.lang.Object
  extended by ro.polak.multilevelcarpark.controllers.BusyElement
Direct Known Subclasses:
ArmController, CarContainerController, ElevatorController

public abstract class BusyElement
extends java.lang.Object

Busy element class. Used for indicating the state of blockable elements, Used for solving controllers dependencies.

Author:
Piotr Polak

Constructor Summary
BusyElement()
           
 
Method Summary
 boolean isBusy()
          Tells whenever the element is busy
 void makeBusy()
          Makes the element busy (sleeps it) and then automatically frees it.
 void makeFree()
          Makes the element free
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusyElement

public BusyElement()
Method Detail

makeBusy

public void makeBusy()
Makes the element busy (sleeps it) and then automatically frees it.


makeFree

public void makeFree()
Makes the element free


isBusy

public boolean isBusy()
Tells whenever the element is busy