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, updateReachedGoals
private 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)
NavigationModule
init
in class NavigationModule
map
- The map.movementModel
- The movement model.activityModule
- The activity module.observation
- The observation module.protected void removeGoals(int numberOfGoals)
NavigationModule
removeGoals
in class NavigationModule
numberOfGoals
- The number of goals.public void setGoal(Position position)
NavigationModule
setGoal
in class NavigationModule
position
- The position.public void setShortTermGoal(Position position)
NavigationModule
setShortTermGoal
in class NavigationModule
position
- The position.public void setShortTermGoals(java.util.List<Position> positions)
NavigationModule
setShortTermGoals
in class NavigationModule
positions
- The positions.