o1.election
Type members
Classlikes
Represents a candidate in an election results application.
Represents a candidate in an election results application.
A candidate object is immutable.
- Value parameters:
- name
the candidate’s name
- party
the name (or abbreviation) of the candidate’s party
- votes
the number of votes received by the candidate
The class District
represents electoral districts (Finnish: vaalipiiri).
Each district has a certain number of seats for which a (larger) number of
candidates compete in an election. Each district has its own candidates.
The class District
represents electoral districts (Finnish: vaalipiiri).
Each district has a certain number of seats for which a (larger) number of
candidates compete in an election. Each district has its own candidates.
A district object is immutable.
- Value parameters:
- candidates
the candidates vying for the seats in the district; there is always at least one candidate per district
- name
the name of the electoral district
- seats
the number of seats (elected positions) available