org.intranet.elevator.model
Class Location
java.lang.Object
org.intranet.sim.ModelElement
org.intranet.elevator.model.Location
- Direct Known Subclasses:
- Floor, MovableLocation
- public class Location
- extends ModelElement
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
height
private float height
capacity
private int capacity
people
private java.util.List people
Location
Location(EventQueue eQ,
float height,
int capacity)
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()