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, isInProgressprivate Chair chair
private double timer
private boolean setGoal
private GateArea gateArea
public BasicGateActivity(Flight flight)
flight - The flight.public boolean canStart(int timeStep)
Activitypublic Position getActivityPosition()
ActivitygetActivityPosition in class Activitypublic void goToActivity()
ActivitygoToActivity in class Activityprivate void setChair()
public void startActivity()
ActivitystartActivity in class Activitypublic void update(int timeStep)
UpdatabletimeStep - The time step of the simulation (in milliseconds).