remoteInterfaces
Interface BulletinBoard

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
BulletinBoard_Impl

public interface BulletinBoard
extends java.rmi.Remote

The interface needed for using the remote object BulletinBoard bound in the RMI registry

Author:
bent

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
 

Method Detail

postVote

public void postVote(Vote v)
              throws java.rmi.RemoteException
Posts a Vote to the bulletin board

Parameters:
v - The vote
Throws:
java.rmi.RemoteException

postVote

public void postVote(BinaryVote v)
              throws java.rmi.RemoteException
Posts a BinaryVote to the bulletin board

Parameters:
v - The BinaryVote
Throws:
java.rmi.RemoteException

postVote

public void postVote(MultipleVotes v)
              throws java.rmi.RemoteException
Posts MultipleVotes to the bulletin board

Parameters:
v - The votes
Throws:
java.rmi.RemoteException

postVote

public void postVote(MultipleBinaryVotes v)
              throws java.rmi.RemoteException
Posts MultipleBinaryVotes to the bulletin board

Parameters:
v - The votes
Throws:
java.rmi.RemoteException

getVotes

public Vote[] getVotes()
                throws java.rmi.RemoteException
Gets the Votes in the case of a single candidate election

Returns:
The Votes in an array
Throws:
java.rmi.RemoteException

getBinaryVotes

public BinaryVote[] getBinaryVotes()
                            throws java.rmi.RemoteException
Gets the BinaryVotes in the case of a single candidate election

Returns:
The BinaryVotes in an array
Throws:
java.rmi.RemoteException

getMultipleVotes

public MultipleVotes[] getMultipleVotes()
                                 throws java.rmi.RemoteException
Gets the MultipleVotes in the case of a multi candidate election

Returns:
The MultipleVotes in an array
Throws:
java.rmi.RemoteException

getMultipleBinaryVotes

public MultipleBinaryVotes[] getMultipleBinaryVotes()
                                             throws java.rmi.RemoteException
Gets the MultipleBinaryVotes in the case of a multi candidate election

Returns:
The MultipleBinaryVotes in an array
Throws:
java.rmi.RemoteException

getNoOfVotes

public int getNoOfVotes()
                 throws java.rmi.RemoteException
Gets the number of votes cast in the election

Returns:
The number of votes
Throws:
java.rmi.RemoteException

endElection

public void endElection()
                 throws java.rmi.RemoteException
Ends the election, thus disallowing the posting of additional votes

Throws:
java.rmi.RemoteException

getNoOfShares

public int getNoOfShares()
                  throws java.rmi.RemoteException
Gets the number of DecryptedShares posted by the DecryptionServers

Returns:
The number of DecryptedShares
Throws:
java.rmi.RemoteException

postShare

public void postShare(DecryptedShare ds)
               throws java.rmi.RemoteException
Posts a DecryptedShare to the bulletin board

Parameters:
ds - The DecryptedShare
Throws:
java.rmi.RemoteException

getElectionStatus

public boolean getElectionStatus()
                          throws java.rmi.RemoteException
Gets the status of the election

Returns:
The status of the election. True if it is finished, false if not.
Throws:
java.rmi.RemoteException

postShare

public void postShare(DecryptedShare[] ds)
               throws java.rmi.RemoteException
Posts multiple DecryptedShares to the bulletin board in a multiple vote election

Parameters:
ds - The DecryptedShares
Throws:
java.rmi.RemoteException

getKOfLShares

public java.util.ArrayList getKOfLShares()
                                  throws java.rmi.RemoteException
Gets the DecryptedShares in the case of a multiple vote election

Returns:
The shares as DecryptedShare-arrays in an ArrayList
Throws:
java.rmi.RemoteException

getOneOfLShares

public DecryptedShare[] getOneOfLShares()
                                 throws java.rmi.RemoteException
Gets the DecryptedShares in the case of a single vote election

Returns:
The shares in an array
Throws:
java.rmi.RemoteException