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>
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:
-
Field Summary
Fields inherited from class Role
CLIENT, OBSERVER, SERVER, SUPERVISOR -
Constructor Summary
ConstructorsConstructorDescriptionCandidate(Individual individual, Situation situation, String office) Creates a new Candidate role for an individual. -
Method Summary
Modifier and TypeMethodDescriptionReturns the office or position the candidate is seeking.getParty()Returns the political party the candidate represents.Returns a summary of the candidate's platform.voidSets the political party for this candidate.voidsetPlatformSummary(String platformSummary) Sets the platform summary for the candidate.toString()Methods inherited from class Role
equals, getId, getIndividual, getKind, getSituation, getTraits, getWhen, hashCode, setKind, setTimestampMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Candidate
Creates a new Candidate role for an individual.- Parameters:
individual- the individual running for officesituation- the political context (usually an Election)office- the position being sought- Throws:
NullPointerException- if individual, situation or office is null
-
-
Method Details
-
getParty
Returns the political party the candidate represents.- Returns:
- the party, or null if independent
-
setParty
Sets the political party for this candidate.- Parameters:
party- the party
-
getOfficeSought
Returns the office or position the candidate is seeking.- Returns:
- the office name
-
getPlatformSummary
Returns a summary of the candidate's platform.- Returns:
- the platform summary
-
setPlatformSummary
Sets the platform summary for the candidate.- Parameters:
platformSummary- the summary
-
toString
-