Interface BallotCaster

All Superinterfaces:
Actuator<String>, AutoCloseable, Commented, ComprehensiveIdentification, Device, Identified<Identification>, Named, Serializable
All Known Implementing Classes:
SimulatedBallotCaster

public interface BallotCaster extends Actuator<String>
Interface for a ballot caster component.
Since:
1.2
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • castBallot

      void castBallot(String candidate)
      Casts a ballot for the specified candidate.
      Parameters:
      candidate - The candidate name or identifier.
    • getBallotCount

      int getBallotCount()
      Returns:
      The total number of ballots cast through this component.