|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.lmu.liftor.Traveller
|
+--edu.lmu.liftor.Traveller.FloorTraveller
|
+--edu.lmu.liftor.Traveller.RandomFloorTraveller
A random floor traveller moves randomly amongst floors.
| Nested Class Summary |
| Nested classes inherited from class edu.lmu.liftor.Traveller |
Traveller.FloorTraveller, Traveller.RandomFloorTraveller, Traveller.VagrantTraveller |
| Field Summary |
| Fields inherited from class edu.lmu.liftor.Traveller.FloorTraveller |
destination |
| Fields inherited from class edu.lmu.liftor.Traveller |
journeyStart, travelReports, travelTime, VAGRANT |
| Constructor Summary | |
Traveller.RandomFloorTraveller(int delay)
|
|
| Method Summary | |
int |
doFloor(Person p)
This Traveller's action is to simply hang about Slacker style. |
boolean |
leaveFloor(Person p)
After an average of two minutes, leave this floor. |
Floor |
pickFloor(Person p)
This method must return the floor that this traveller wants to go to. |
| Methods inherited from class edu.lmu.liftor.Traveller.FloorTraveller |
getName, motivate |
| Methods inherited from class edu.lmu.liftor.Traveller |
beginJourney, endJourney, getLastJourneyTime, inTransit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Traveller.RandomFloorTraveller(int delay)
| Method Detail |
public int doFloor(Person p)
doFloor in class Traveller.FloorTravellerpublic boolean leaveFloor(Person p)
leaveFloor in class Traveller.FloorTravellerpublic Floor pickFloor(Person p)
Traveller.FloorTraveller
pickFloor in class Traveller.FloorTraveller
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||