org.intranet.elevator.model
Class Floor

java.lang.Object
  extended byorg.intranet.sim.ModelElement
      extended byorg.intranet.elevator.model.Location
          extended byorg.intranet.elevator.model.Floor

public final class Floor
extends Location


Field Summary
private  CarRequestPanel callPanel
           
private  CarEntrance.CarEntranceListener carEntranceListener
           
private  java.util.List carEntrances
           
private  float ceiling
           
private  int number
           
 
Fields inherited from class org.intranet.elevator.model.Location
 
Fields inherited from class org.intranet.sim.ModelElement
eventQueue
 
Constructor Summary
Floor(EventQueue eQ, int number, float height, float ceiling)
           
 
Method Summary
 void createCarEntrance(Location destination)
           
 float getAbsoluteCeiling()
           
 CarRequestPanel getCallPanel()
           
 CarEntrance getCarEntranceForCar(Location destination)
           
 java.util.Iterator getCarEntrances()
           
 float getCeiling()
           
 int getFloorNumber()
           
 CarEntrance getOpenCarEntrance(boolean up)
           
 java.lang.String toString()
           
 
Methods inherited from class org.intranet.elevator.model.Location
getCapacity, getHeight, getPeople, isAtCapacity, personEnters, personLeaves, setHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

private int number

ceiling

private float ceiling

callPanel

private CarRequestPanel callPanel

carEntrances

private java.util.List carEntrances

carEntranceListener

private CarEntrance.CarEntranceListener carEntranceListener
Constructor Detail

Floor

public Floor(EventQueue eQ,
             int number,
             float height,
             float ceiling)
Method Detail

getFloorNumber

public int getFloorNumber()

getCeiling

public float getCeiling()

getAbsoluteCeiling

public float getAbsoluteCeiling()

getCallPanel

public CarRequestPanel getCallPanel()

createCarEntrance

public void createCarEntrance(Location destination)

getCarEntrances

public java.util.Iterator getCarEntrances()

getOpenCarEntrance

public CarEntrance getOpenCarEntrance(boolean up)

getCarEntranceForCar

public CarEntrance getCarEntranceForCar(Location destination)

toString

public java.lang.String toString()