public class BasicPassengerCheckInActivity extends PassengerCheckInActivity
Modifier and Type | Field and Description |
---|---|
private Flight |
flight
The flight of the agent.
|
private Desk |
servingDesk
The serving desk.
|
activityModule, agent, map, movement, navigationModule, observations
Constructor and Description |
---|
BasicPassengerCheckInActivity(Flight flight)
Creates a check-in activity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canStart(int timeStep)
Determines if the activity can start.
|
Position |
getActivityPosition()
Gets the activity position.
|
private java.util.List<Desk> |
getClosestDesks()
Gets the closest desk.
|
private Position |
getTemporaryPosition()
Gets a temporary position to prevent getting stuck behind other
passengers.
|
void |
goToActivity()
Sends the agent to the activity area.
|
void |
startActivity()
Starts the activity.
|
void |
update(int timeStep)
Updates the updatable element.
|
endActivity, getActivityState, init, isFinished, isGoingToActivity, isInProgress
private Flight flight
private Desk servingDesk
public BasicPassengerCheckInActivity(Flight flight)
flight
- The flight.public boolean canStart(int timeStep)
Activity
public Position getActivityPosition()
Activity
getActivityPosition
in class Activity
private java.util.List<Desk> getClosestDesks()
private Position getTemporaryPosition()
public void goToActivity()
Activity
goToActivity
in class Activity
public void startActivity()
Activity
startActivity
in class Activity
public void update(int timeStep)
Updatable
timeStep
- The time step of the simulation (in milliseconds).