votingSystem
Class Result

java.lang.Object
  extended byvotingSystem.Result

public class Result
extends java.lang.Object

Class for computing and displaying the Result of an election from the plaintext value after decryption

Author:
Bent K. Onshus

Constructor Summary
Result()
          Creates a new Result
 
Method Summary
 java.math.BigInteger[] getResult(java.math.BigInteger[] results, java.math.BigInteger[] voteValues, int[] voteweights)
           
 java.math.BigInteger[] getResult(java.math.BigInteger results, java.math.BigInteger[] voteValues)
           
 java.math.BigInteger[] getResultFromBinary(java.math.BigInteger[] results, int M, int L, int[] voteweights)
           
 java.math.BigInteger[] getResultFromBinary(java.math.BigInteger results, int M, int L)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
Creates a new Result

Method Detail

getResult

public java.math.BigInteger[] getResult(java.math.BigInteger results,
                                        java.math.BigInteger[] voteValues)

getResult

public java.math.BigInteger[] getResult(java.math.BigInteger[] results,
                                        java.math.BigInteger[] voteValues,
                                        int[] voteweights)

getResultFromBinary

public java.math.BigInteger[] getResultFromBinary(java.math.BigInteger[] results,
                                                  int M,
                                                  int L,
                                                  int[] voteweights)

getResultFromBinary

public java.math.BigInteger[] getResultFromBinary(java.math.BigInteger results,
                                                  int M,
                                                  int L)