public class BasicXRayActivity extends XRayActivity
Modifier and Type | Field and Description |
---|---|
private OperatorAgent |
bagChecker
The bagChecker.
|
private Observation<?> |
observation
The latest observation.
|
private double |
recoverTime
The recovery time of an x-ray agent.
|
private double |
threatLevelThreshold
The threat level threshold.
|
private XRaySystem |
xRaySystem
The x-ray system.
|
activityModule, agent, map, movement, navigationModule, observations
Constructor and Description |
---|
BasicXRayActivity(XRaySystem xRaySystem,
OperatorAgent bagChecker)
Creates the X-Ray activity.
|
BasicXRayActivity(XRaySystem xRaySystem,
OperatorAgent bagChecker,
double threatLevelThreshold)
Creates the X-Ray 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
private XRaySystem xRaySystem
private double recoverTime
private double threatLevelThreshold
private OperatorAgent bagChecker
private Observation<?> observation
public BasicXRayActivity(XRaySystem xRaySystem, OperatorAgent bagChecker)
xRaySystem
- The x-ray system.bagChecker
- The bag checker.public BasicXRayActivity(XRaySystem xRaySystem, OperatorAgent bagChecker, double threatLevelThreshold)
xRaySystem
- The x-ray system.bagChecker
- The bag checker.threatLevelThreshold
- The threat level threshold.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).