org.intranet.elevator.model
Class Location

java.lang.Object
  extended byorg.intranet.sim.ModelElement
      extended byorg.intranet.elevator.model.Location
Direct Known Subclasses:
Floor, MovableLocation

public class Location
extends ModelElement


Field Summary
private  int capacity
           
private  float height
           
private  java.util.List people
           
 
Fields inherited from class org.intranet.sim.ModelElement
eventQueue
 
Constructor Summary
(package private) Location(EventQueue eQ, float height, int capacity)
           
 
Method Summary
 int getCapacity()
           
 float getHeight()
           
 java.util.Iterator getPeople()
           
 boolean isAtCapacity()
           
 void personEnters(java.lang.Object person)
           
 void personLeaves(java.lang.Object person)
           
protected  void setHeight(float newHeight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

private float height

capacity

private int capacity

people

private java.util.List people
Constructor Detail

Location

Location(EventQueue eQ,
         float height,
         int capacity)
Method Detail

getHeight

public final float getHeight()

setHeight

protected void setHeight(float newHeight)

personEnters

public final void personEnters(java.lang.Object person)

getPeople

public final java.util.Iterator getPeople()

personLeaves

public final void personLeaves(java.lang.Object person)

isAtCapacity

public final boolean isAtCapacity()

getCapacity

public final int getCapacity()