|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectm865.simulation.Passenger.FloorTimePair
public static class Passenger.FloorTimePair
A simple class representing a floor and time pair, telling us what floor we need to be at and how much time we'll spend there.
Constructor Summary | |
---|---|
Passenger.FloorTimePair(int floor,
int time)
Create a new FloorTimePair. |
Method Summary | |
---|---|
int |
getFloor()
Get the floor. |
int |
getTime()
Get the time. |
java.lang.String |
toString()
Get a String representation of the FloorTimePair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Passenger.FloorTimePair(int floor, int time)
floor
- The floor the passenger should go to.time
- The amount of time the passenger will be at that
floor.Method Detail |
---|
public int getFloor()
public int getTime()
public java.lang.String toString()
String
representation of the FloorTimePair.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |