Interface VotingMachine

All Superinterfaces:
AutoCloseable, Commented, ComplexInstrument, ComprehensiveIdentification, Device, Identified<Identification>, Named, Serializable
All Known Implementing Classes:
SimulatedVotingMachine

public interface VotingMachine extends ComplexInstrument
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)
  • Method Details

    • getVoterScanner

      VoterScanner getVoterScanner()
      Returns:
      The voter identification scanner.
    • getBallotCaster

      BallotCaster getBallotCaster()
      Returns:
      The ballot caster component.
    • castVote

      default void castVote(String selection)
      Convenience method to cast a vote.
    • getVoteCount

      default int getVoteCount()
      Convenience method to get the vote count.