public class BasicGateActivity extends GateActivity
Modifier and Type | Field and Description |
---|---|
private Chair |
chair
The chosen chair.
|
private GateArea |
gateArea
The gate area.
|
private boolean |
setGoal
Set the goal.
|
private double |
timer
Timer to prevent checking every time.
|
activityModule, agent, map, movement, navigationModule, observations
Constructor and Description |
---|
BasicGateActivity(Flight flight)
Creates the gate activity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canStart(int timeStep)
Determines if the activity can start.
|
Position |
getActivityPosition()
Gets the activity position.
|
void |
goToActivity()
Sends the agent to the activity area.
|
private void |
setChair()
Sets a chair that the agent can sit on.
|
void |
startActivity()
Starts the activity.
|
void |
update(int timeStep)
Updates the updatable element.
|
endActivity, getActivityState, init, isFinished, isGoingToActivity, isInProgress
private Chair chair
private double timer
private boolean setGoal
private GateArea gateArea
public BasicGateActivity(Flight flight)
flight
- The flight.public boolean canStart(int timeStep)
Activity
public Position getActivityPosition()
Activity
getActivityPosition
in class Activity
public void goToActivity()
Activity
goToActivity
in class Activity
private void setChair()
public void startActivity()
Activity
startActivity
in class Activity
public void update(int timeStep)
Updatable
timeStep
- The time step of the simulation (in milliseconds).