Class SimulatedBallotCaster
java.lang.Object
org.episteme.core.device.AbstractDevice
org.episteme.core.device.AbstractActuator<String>
org.episteme.core.device.sim.AbstractSimulatedActuator<String>
org.episteme.social.device.sim.SimulatedBallotCaster
- All Implemented Interfaces:
Serializable, AutoCloseable, Actuator<String>, Device, Commented, ComprehensiveIdentification, Identified<Identification>, Named, BallotCaster
public class SimulatedBallotCaster
extends AbstractSimulatedActuator<String>
implements BallotCaster
Simulated ballot caster.
- Since:
- 1.2
- 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 AbstractSimulatedActuator
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 TypeMethodDescriptionvoidcastBallot(String candidate) Casts a ballot for the specified candidate.intvoidSends a command or value to the actuator.Methods inherited from class AbstractSimulatedActuator
addCustomReadings, close, connect, disconnect, getCapabilities, getFormattedInfo, getReadings, getStatus, isConnectedMethods 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 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
-
Constructor Details
-
SimulatedBallotCaster
-
-
Method Details
-
castBallot
Description copied from interface:BallotCasterCasts a ballot for the specified candidate.- Specified by:
castBallotin interfaceBallotCaster- Parameters:
candidate- The candidate name or identifier.
-
getBallotCount
public int getBallotCount()- Specified by:
getBallotCountin interfaceBallotCaster- Returns:
- The total number of ballots cast through this component.
-
send
Description copied from interface:ActuatorSends a command or value to the actuator.- Specified by:
sendin interfaceActuator<String>- Parameters:
command- the command/value to send- Throws:
IOException- if the operation fails
-