Class SimulatedVotingMachine
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.sim.AbstractSimulatedDevice
org.episteme.social.device.sim.SimulatedVotingMachine
- All Implemented Interfaces:
Serializable, AutoCloseable, ComplexInstrument, Device, Commented, ComprehensiveIdentification, Identified<Identification>, Named, VotingMachine
A simulated voting machine for testing social systems.
Implemented as a complex instrument with a scanner and a caster.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDevice
AbstractDevice.RecordNested classes/interfaces inherited from interface Device
Device.Record, Device.Status -
Field Summary
Fields inherited from class AbstractSimulatedDevice
supportFields inherited from class AbstractDevice
accuracy, calibrationHistory, currentValue, displayUnit, firmware, history, identification, lastCalibration, locationDescription, manufacturer, maxRange, minRange, model, precisionDescription, resolution, sensitivity, status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Connects to the device.voidDisconnects from the device.Methods inherited from class AbstractSimulatedDevice
addCustomReadings, close, getCapabilities, getDriverClass, getErrorCode, getFormattedInfo, getReadings, getStatus, getUptimeSeconds, isConnected, isPowerOn, setCapability, setDriverClass, setErrorCode, setPowerOnMethods inherited from class AbstractDevice
calibrate, getAccuracy, getCalibrationHistory, getDeviceStatus, getDisplayUnit, getFirmware, getHistory, getId, getLastCalibration, getLocationDescription, getManufacturer, getMaxRange, getMeasurableQuantities, getMinRange, getModel, getPrecisionDescription, getResolution, getSensitivity, getTrait, getTraitOptional, getTraits, getValue, isEnabled, measure, needsCalibration, performCalibration, recordMeasurement, setAccuracy, setCurrentValue, setDisplayUnit, setEnabled, setFirmware, setLastCalibration, setLocationDescription, setManufacturer, setMaxRange, setMinRange, setModel, setPrecisionDescription, setResolution, setSensitivity, setStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AutoCloseable
closeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComplexInstrument
calibrateMethods inherited from interface ComprehensiveIdentification
getName, getTrait, getTraits, setName, setTraitMethods inherited from interface Device
calibrate, 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, setEnabledMethods inherited from interface VotingMachine
castVote, getVoteCount
-
Constructor Details
-
SimulatedVotingMachine
-
-
Method Details
-
getVoterScanner
- Specified by:
getVoterScannerin interfaceVotingMachine- Returns:
- The voter identification scanner.
-
getBallotCaster
- Specified by:
getBallotCasterin interfaceVotingMachine- Returns:
- The ballot caster component.
-
getSensors
- Specified by:
getSensorsin interfaceComplexInstrument- Returns:
- The list of sensors attached to this instrument.
-
getActuators
- Specified by:
getActuatorsin interfaceComplexInstrument- Returns:
- The list of actuators attached to this instrument.
-
connect
Description copied from interface:DeviceConnects to the device.- Specified by:
connectin interfaceDevice- Overrides:
connectin classAbstractSimulatedDevice- Throws:
IOException- if the connection fails
-
disconnect
Description copied from interface:DeviceDisconnects from the device.- Specified by:
disconnectin interfaceDevice- Overrides:
disconnectin classAbstractSimulatedDevice- Throws:
IOException- if the disconnection fails
-