Class Candidate

java.lang.Object
org.episteme.social.sociology.Role
org.episteme.social.politics.Candidate
All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>

public class Candidate extends Role
Represents the role of a candidate within a political situation (e.g., an election). A candidate is an individual seeking a specific office or representation. * @version 1.0
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Candidate

      public Candidate(Individual individual, Situation situation, String office)
      Creates a new Candidate role for an individual.
      Parameters:
      individual - the individual running for office
      situation - the political context (usually an Election)
      office - the position being sought
      Throws:
      NullPointerException - if individual, situation or office is null
  • Method Details

    • getParty

      public Party getParty()
      Returns the political party the candidate represents.
      Returns:
      the party, or null if independent
    • setParty

      public void setParty(Party party)
      Sets the political party for this candidate.
      Parameters:
      party - the party
    • getOfficeSought

      public String getOfficeSought()
      Returns the office or position the candidate is seeking.
      Returns:
      the office name
    • getPlatformSummary

      public String getPlatformSummary()
      Returns a summary of the candidate's platform.
      Returns:
      the platform summary
    • setPlatformSummary

      public void setPlatformSummary(String platformSummary)
      Sets the platform summary for the candidate.
      Parameters:
      platformSummary - the summary
    • toString

      public String toString()
      Overrides:
      toString in class Role