public class BasicPhysicalCheckActivity extends PhysicalCheckActivity
Modifier and Type | Field and Description |
---|---|
protected Passenger |
passenger
The passenger under consideration.
|
protected WalkThroughMetalDetector |
wtmd
The wtmd.
|
activityModule, agent, map, movement, navigationModule, observations
Constructor and Description |
---|
BasicPhysicalCheckActivity(WalkThroughMetalDetector wtmd)
Creates a physical check activity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canStart(int timeStep)
Determines if the activity can start.
|
Position |
getActivityPosition()
Gets the activity position.
|
void |
startActivity()
Starts the activity.
|
void |
update(int timeStep)
Updates the updatable element.
|
endActivity, getActivityState, goToActivity, init, isFinished, isGoingToActivity, isInProgress
protected WalkThroughMetalDetector wtmd
protected Passenger passenger
public BasicPhysicalCheckActivity(WalkThroughMetalDetector wtmd)
wtmd
- The WTMD.public boolean canStart(int timeStep)
Activity
public Position getActivityPosition()
Activity
getActivityPosition
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).