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, personsInCosiderationshapepositionmap| Constructor and Description |
|---|
BasicWalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition,
double etdThreshold,
double randomCheckThreshold)
Creates a WTMD from its corner
Positions. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGo()
Determines if the passenger can go.
|
Observation<?> |
getObservation()
Gets an
Observation from the sensor. |
getCheckPosition, getLastObservedPassenger, setPersonsInConsiderationcontains, contains, generatePosition, generatePosition, generatePositions, generatePositions, getCorners, getVectorToPosition, isCollision, isLineCollision, toStringgetDistance, getPositionisDestroyedprivate double etdThreshold
private double randomCheckThreshold
public BasicWalkThroughMetalDetector(java.util.List<Position> corners, Position checkPosition, double etdThreshold, double randomCheckThreshold)
Positions.corners - The corners.checkPosition - The check position.etdThreshold - The etd threshold.randomCheckThreshold - The random check threshold.public boolean canGo()
canGo in class WalkThroughMetalDetectorpublic Observation<?> getObservation()
SensorObservation from the sensor.getObservation in class Sensor