public class BasicSchipholCheckpointActivity extends CheckpointActivity
| Modifier and Type | Field and Description |
|---|---|
private Position |
activityPosition
The activity position.
|
private MathDistribution |
collectDistribution
The luggage collect time distribution.
|
private boolean |
collected
Luggage has been collected or not.
|
private int |
collectPosition
The collect position.
|
private MathDistribution |
dropDistribution
The luggage drop time distribution.
|
private int |
dropOffPosition
The drop off position.
|
private boolean |
dropped
Luggage has been dropped or not.
|
private int |
phase
The phase.
|
private double |
timeInPhase
The time in a specific checkpoint activity phase.
|
private WalkThroughMetalDetector |
wtmd
The wtmd.
|
private XRaySystem |
xRaySystem
The x-ray system that the agent is assigned to.
|
searchTimeactivityModule, agent, map, movement, navigationModule, observations| Constructor and Description |
|---|
BasicSchipholCheckpointActivity(Flight flight,
MathDistribution dropDistribution,
MathDistribution collectDistribution)
Creates a checkpoint activity with a specified high level model of an
agent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canStart(int timeStep)
Determines if the activity can start.
|
private boolean |
collectPositionAvailable()
Determines if a collect position is available.
|
private void |
dropLuggageAndgoToWTMD()
Drop the luggage at the point and go to the wtmd.
|
private void |
finishCollect()
Finish the collect action.
|
Position |
getActivityPosition()
Gets the activity position.
|
private java.util.List<XRaySystem> |
getClosestSystems()
Gets the closest systems.
|
private WalkThroughMetalDetector |
getClosestWTMD()
Gets the closest systems.
|
void |
goToActivity()
Sends the agent to the activity area.
|
private void |
goToCollect()
Go to the collect position.
|
private void |
goToSystemAndStop()
Go to the system and stop there.
|
void |
startActivity()
Starts the activity.
|
void |
update(int timeStep)
Updates the updatable element.
|
private void |
waitAtCollect()
Wait at the collect position.
|
setSearchendActivity, getActivityState, init, isFinished, isGoingToActivity, isInProgressprivate XRaySystem xRaySystem
private WalkThroughMetalDetector wtmd
private Position activityPosition
private int phase
private double timeInPhase
private int dropOffPosition
private int collectPosition
private boolean dropped
private boolean collected
private MathDistribution dropDistribution
private MathDistribution collectDistribution
public BasicSchipholCheckpointActivity(Flight flight, MathDistribution dropDistribution, MathDistribution collectDistribution)
flight - The flight.dropDistribution - The random distribution for drop time.collectDistribution - The random distribution for collect time.public boolean canStart(int timeStep)
Activityprivate boolean collectPositionAvailable()
private void dropLuggageAndgoToWTMD()
private void finishCollect()
public Position getActivityPosition()
getActivityPosition in class Activityprivate java.util.List<XRaySystem> getClosestSystems()
private WalkThroughMetalDetector getClosestWTMD()
public void goToActivity()
ActivitygoToActivity in class Activityprivate void goToCollect()
private void goToSystemAndStop()
public void startActivity()
ActivitystartActivity in class Activitypublic void update(int timeStep)
UpdatabletimeStep - The time step of the simulation (in milliseconds).private void waitAtCollect()