Interface VotingMachine
- All Superinterfaces:
AutoCloseable, Commented, ComplexInstrument, ComprehensiveIdentification, Device, Identified<Identification>, Named, Serializable
- All Known Implementing Classes:
SimulatedVotingMachine
A Voting Machine device for electronic voting.
It is a complex instrument containing a voter scanner and a ballot caster.
- Since:
- 1.0
- 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 TypeMethodDescriptiondefault voidConvenience method to cast a vote.default intConvenience method to get the vote count.Methods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComplexInstrument
calibrate, getActuators, getSensorsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
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
-
getVoterScanner
VoterScanner getVoterScanner()- Returns:
- The voter identification scanner.
-
getBallotCaster
BallotCaster getBallotCaster()- Returns:
- The ballot caster component.
-
castVote
Convenience method to cast a vote. -
getVoteCount
default int getVoteCount()Convenience method to get the vote count.
-