![]() |
Members | Description | ||
port | ||||
localAddr | ||||
elections | ||||
DEFAULT_PORT | ||||
Server |
Constructor.
|
|||
Port |
Port accessor
|
|||
LocalAddr |
Local address accessor
|
|||
setup |
Reads the contents of an XML file and parses the elections and
the candidates.
|
|||
openElection |
Opens the election by calling on the method on election object
|
|||
closeElection |
Closes the election by calling close() method in election.
Passes Display Manager so that election can pass the
information to be displayed on the screen.
|
|||
viewElection |
Calls view method on election to display the election results.
|
|||
displayElections |
Prepares Display Manager to display the results of the elections
|
|||
getElections |
Gets the list of elections
|
|||
getCandidates |
Gets the candidate list for the specified election
|
|||
vote |
Records the vote for the specified candidate in the election
|