public class BasicWalkThroughMetalDetector extends WalkThroughMetalDetector
Modifier and Type | Field and Description |
---|---|
private double |
etdThreshold
The etd threshold.
|
private double |
randomCheckThreshold
The random check threshold.
|
checkPosition, lastObservedPassenger, personsInCosideration
shape
position
map
Constructor and Description |
---|
BasicWalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition,
double etdThreshold,
double randomCheckThreshold)
Creates a WTMD from its corner
Position s. |
Modifier and Type | Method and Description |
---|---|
boolean |
canGo()
Determines if the passenger can go.
|
Observation<?> |
getObservation()
Gets an
Observation from the sensor. |
getCheckPosition, getLastObservedPassenger, setPersonsInConsideration
contains, contains, generatePosition, generatePosition, generatePositions, generatePositions, getCorners, getVectorToPosition, isCollision, isLineCollision, toString
getDistance, getPosition
isDestroyed
private double etdThreshold
private double randomCheckThreshold
public BasicWalkThroughMetalDetector(java.util.List<Position> corners, Position checkPosition, double etdThreshold, double randomCheckThreshold)
Position
s.corners
- The corners.checkPosition
- The check position.etdThreshold
- The etd threshold.randomCheckThreshold
- The random check threshold.public boolean canGo()
canGo
in class WalkThroughMetalDetector
public Observation<?> getObservation()
Sensor
Observation
from the sensor.getObservation
in class Sensor