|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmovement.EveningTrip
public class EveningTrip
A class to encapsulate information about a shopping trip 1. Where the trip begins 2. Where it ends 3. The path 4. All nodes in the group
| Constructor Summary | |
|---|---|
EveningTrip(int nrOfeveningActivityNodes,
Coord location)
Create a new instance of a EveningTrip |
|
| Method Summary | |
|---|---|
boolean |
addNode(EveningActivityMovement eveningActivityNode)
Add an evening activity node to the group |
boolean |
allMembersPresent()
Checks if all members of the group have found their way to the meeting point |
Coord |
getDestination()
|
Coord |
getLocation()
|
Path |
getPath()
|
double |
getWaitTimeAtEnd()
|
boolean |
isFull()
|
void |
setDestination(Coord destination)
Sets the destination square of the trip. |
void |
setPath(Path path)
Sets the shopping path for the group |
void |
setWaitTimeAtEnd(double waitTimeAtEnd)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EveningTrip(int nrOfeveningActivityNodes,
Coord location)
nrOfeveningActivityNodes - The number of shoppers in the grouplocation - Where the trip starts| Method Detail |
|---|
public boolean addNode(EveningActivityMovement eveningActivityNode)
eveningActivityNode -
public void setPath(Path path)
path - public Path getPath()
public Coord getLocation()
public boolean isFull()
public boolean allMembersPresent()
public Coord getDestination()
public void setDestination(Coord destination)
destination - public double getWaitTimeAtEnd()
public void setWaitTimeAtEnd(double waitTimeAtEnd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||