|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.lmu.liftor.Traveller
A traveller travels among floors in a building.
| Nested Class Summary | |
static class |
Traveller.FloorTraveller
A floor traveller is a traveller that moves about the building with a sense of direction. |
static class |
Traveller.RandomFloorTraveller
A random floor traveller moves randomly amongst floors. |
static class |
Traveller.VagrantTraveller
The vagrant travller is simply a random mover. |
| Field Summary | |
protected SynchronizedLong |
journeyStart
|
static Channel |
travelReports
A channel containing reports (SynchronizedInts) of the time of recent journeys. |
protected SynchronizedLong |
travelTime
The time of the last journey. |
static Person.Personality |
VAGRANT
A vagrant that wanders about. |
| Method Summary | |
protected void |
beginJourney()
|
protected void |
endJourney()
|
long |
getLastJourneyTime()
Get the time of this Traveller's last journey. |
java.lang.String |
getName()
Returns the name of this personality. |
boolean |
inTransit()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.lmu.liftor.Person.Personality |
motivate |
| Field Detail |
protected SynchronizedLong travelTime
protected SynchronizedLong journeyStart
public static final Channel travelReports
public static final Person.Personality VAGRANT
| Method Detail |
public java.lang.String getName()
Person.Personality
getName in interface Person.Personalitypublic long getLastJourneyTime()
public boolean inTransit()
protected void beginJourney()
protected void endJourney()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||