Interface VoterScanner
- All Superinterfaces:
AutoCloseable, Commented, ComprehensiveIdentification, Device, Identified<Identification>, Named, Sensor<Dimensionless>, Serializable
- All Known Implementing Classes:
SimulatedVoterScanner
Interface for a voter identification scanner.
- Since:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Method Summary
Modifier and TypeMethodDescriptionbooleanScans and returns the current voter's identification.Methods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, calibrate, connect, disconnect, getAccuracy, getCalibrationHistory, getCapabilities, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getReadings, getResolution, getSensitivity, getStatus, getValue, isConnected, isEnabled, measure, needsCalibration, setDisplayUnit, setEnabled
-
Method Details
-
isVoterDetected
boolean isVoterDetected()- Returns:
- true if a voter ID is currently detected.
-
scanVoter
Identification scanVoter()Scans and returns the current voter's identification.- Returns:
- The identification of the voter, or null if none detected.
-