|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.BulletinBoard_Impl
Implementation of the remote class BulletinBoard that is bound to the RMI registry for remote use. The BulletinBoard holds the votes and the DecryptedShares for the election
Constructor Summary | |
BulletinBoard_Impl()
Empty constructor. |
Method Summary | |
void |
endElection()
Ends the election, thus disallowing the posting of additional votes |
BinaryVote[] |
getBinaryVotes()
Gets the BinaryVotes in the case of a single candidate election |
boolean |
getElectionStatus()
Gets the status of the election |
java.util.ArrayList |
getKOfLShares()
Gets the DecryptedShares in the case of a multiple vote election |
MultipleBinaryVotes[] |
getMultipleBinaryVotes()
Gets the MultipleBinaryVotes in the case of a multi candidate election |
MultipleVotes[] |
getMultipleVotes()
Gets the MultipleVotes in the case of a multi candidate election |
int |
getNoOfShares()
Gets the number of DecryptedShares posted by the DecryptionServers |
int |
getNoOfVotes()
Gets the number of votes cast in the election |
DecryptedShare[] |
getOneOfLShares()
Gets the DecryptedShares in the case of a single vote election |
Vote[] |
getVotes()
Gets the Votes in the case of a single candidate election |
void |
postShare(DecryptedShare ds)
Posts a DecryptedShare to the bulletin board |
void |
postShare(DecryptedShare[] ds)
Posts multiple DecryptedShares to the bulletin board in a multiple vote election |
void |
postVote(BinaryVote v)
Posts a BinaryVote to the bulletin board |
void |
postVote(MultipleBinaryVotes v)
Posts MultipleBinaryVotes to the bulletin board |
void |
postVote(MultipleVotes v)
Posts MultipleVotes to the bulletin board |
void |
postVote(Vote v)
Posts a Vote to the bulletin board |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BulletinBoard_Impl()
Method Detail |
public void postVote(Vote v) throws java.rmi.RemoteException
postVote
in interface BulletinBoard
v
- The vote
java.rmi.RemoteException
public void postVote(BinaryVote v) throws java.rmi.RemoteException
postVote
in interface BulletinBoard
v
- The BinaryVote
java.rmi.RemoteException
public void postVote(MultipleVotes v) throws java.rmi.RemoteException
postVote
in interface BulletinBoard
v
- The votes
java.rmi.RemoteException
public void postVote(MultipleBinaryVotes v) throws java.rmi.RemoteException
postVote
in interface BulletinBoard
v
- The votes
java.rmi.RemoteException
public void postShare(DecryptedShare ds) throws java.rmi.RemoteException
postShare
in interface BulletinBoard
ds
- The DecryptedShare
java.rmi.RemoteException
public void postShare(DecryptedShare[] ds) throws java.rmi.RemoteException
postShare
in interface BulletinBoard
ds
- The DecryptedShares
java.rmi.RemoteException
public DecryptedShare[] getOneOfLShares() throws java.rmi.RemoteException
getOneOfLShares
in interface BulletinBoard
java.rmi.RemoteException
public java.util.ArrayList getKOfLShares() throws java.rmi.RemoteException
getKOfLShares
in interface BulletinBoard
java.rmi.RemoteException
public Vote[] getVotes() throws java.rmi.RemoteException
getVotes
in interface BulletinBoard
java.rmi.RemoteException
public BinaryVote[] getBinaryVotes() throws java.rmi.RemoteException
getBinaryVotes
in interface BulletinBoard
java.rmi.RemoteException
public MultipleVotes[] getMultipleVotes() throws java.rmi.RemoteException
getMultipleVotes
in interface BulletinBoard
java.rmi.RemoteException
public MultipleBinaryVotes[] getMultipleBinaryVotes() throws java.rmi.RemoteException
getMultipleBinaryVotes
in interface BulletinBoard
java.rmi.RemoteException
public int getNoOfVotes() throws java.rmi.RemoteException
getNoOfVotes
in interface BulletinBoard
java.rmi.RemoteException
public int getNoOfShares() throws java.rmi.RemoteException
getNoOfShares
in interface BulletinBoard
java.rmi.RemoteException
public void endElection() throws java.rmi.RemoteException
endElection
in interface BulletinBoard
java.rmi.RemoteException
public boolean getElectionStatus() throws java.rmi.RemoteException
getElectionStatus
in interface BulletinBoard
java.rmi.RemoteException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |