public class PassengerNavigationModule extends NavigationModule
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Position> |
checkInGoals
Check in goals.
|
private Flight |
flight
The flight.
|
activityModule, goalPositions, movementModel, observationModule, pathFinder, stuckDetector| Constructor and Description |
|---|
PassengerNavigationModule(Flight flight)
Create a goal activity.
|
PassengerNavigationModule(Flight flight,
java.util.List<Position> goalPositions)
Creates a goal activity.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.List<Position> |
getCheckInGoal(Position position)
Set the goal position if we are doing a check-in.
|
void |
init(Map map,
MovementModule movementModel,
ActivityModule activityModule,
ObservationModule observation)
Sets the agent.
|
protected void |
removeGoals(int numberOfGoals)
Remove a number of goals from the list.
|
void |
setGoal(Position position)
Sets the goal position.
|
void |
setShortTermGoal(Position position)
Set a short term goal position.
|
void |
setShortTermGoals(java.util.List<Position> positions)
Sets a set of short term positions.
|
getGoalPosition, getGoalPositions, getReachedGoal, handleStuckBehavior, isStuck, update, updateReachedGoalsprivate java.util.List<Position> checkInGoals
private Flight flight
public PassengerNavigationModule(Flight flight)
flight - The flight.private java.util.List<Position> getCheckInGoal(Position position)
position - The position from where the goal is set.public void init(Map map, MovementModule movementModel, ActivityModule activityModule, ObservationModule observation)
NavigationModuleinit in class NavigationModulemap - The map.movementModel - The movement model.activityModule - The activity module.observation - The observation module.protected void removeGoals(int numberOfGoals)
NavigationModuleremoveGoals in class NavigationModulenumberOfGoals - The number of goals.public void setGoal(Position position)
NavigationModulesetGoal in class NavigationModuleposition - The position.public void setShortTermGoal(Position position)
NavigationModulesetShortTermGoal in class NavigationModuleposition - The position.public void setShortTermGoals(java.util.List<Position> positions)
NavigationModulesetShortTermGoals in class NavigationModulepositions - The positions.