edu.lmu.liftor
Class Floor
java.lang.Object
|
+--edu.lmu.liftor.Place.PlaceImpl
|
+--edu.lmu.liftor.Floor
- All Implemented Interfaces:
- Place
- public class Floor
- extends Place.PlaceImpl
One of many places that reside inside of a building.
| Fields inherited from interface edu.lmu.liftor.Place |
LIMBO |
|
Constructor Summary |
Floor(Building building,
int floorNumber)
Construct a new floor in the given building at the given level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
building
public final Building building
number
public final int number
Floor
public Floor(Building building,
int floorNumber)
- Construct a new floor in the given building at the given level.
floorIsUpFromHere
public boolean floorIsUpFromHere(Floor there)
getNumber
public int getNumber()
topFloor
public boolean topFloor()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getLanding
public Elevator.Landing getLanding()