software.common
Class Meeting

java.lang.Object
  extended by software.common.Meeting
Direct Known Subclasses:
MeetingFour, MeetingOne, MeetingThree, MeetingTwo

public class Meeting
extends java.lang.Object

General framework for all the meetings. Needs m1into read the number of ballots, the number of D tables, the public constant and eventually the partitions. If the partitions are not specified (or specified in a file that cannot be read), by default all the questions are in the same partition.

Author:
stefan

Field Summary
static boolean CheckagainsSchema
           
static java.lang.String MeetingOneInSchema
           
static javax.xml.validation.SchemaFactory schemaFactory
           
 
Constructor Summary
Meeting()
          Initializes the meeting with mk1=mk2=c={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}, 100 ballots, 2 D tables Creates a default Election Specification (4 questions, 1 out of 2, 1 out of 5, 3 out of 6, rank 3 out of 4)
Meeting(org.w3c.dom.Document doc)
           
Meeting(java.lang.String confFile)
           
 
Method Summary
 byte[] getC()
           
 org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification getEs()
           
 int getNumberOfBallots()
           
 int getNumberOfDs()
           
 java.util.Vector<java.util.Vector<java.lang.Integer>> getPartitions()
           
 java.util.TreeMap<java.lang.Integer,Prow> getProws()
           
 void init(byte[] mk1, byte[] mk2)
          Sets the two master keys from raw material
 void init(javax.crypto.spec.SecretKeySpec mk1, javax.crypto.spec.SecretKeySpec mk2)
          sets the two master key
static void main(java.lang.String[] args)
           
 void setEs(org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification es)
           
 void setNumberOfBallots(int numberOfBallots)
           
 void setNumberOfDs(int numberOfDs)
           
 void setPartitions(java.util.Vector<java.util.Vector<java.lang.Integer>> partitions)
           
 void setProws(java.util.TreeMap<java.lang.Integer,Prow> prows)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CheckagainsSchema

public static boolean CheckagainsSchema

MeetingOneInSchema

public static java.lang.String MeetingOneInSchema

schemaFactory

public static javax.xml.validation.SchemaFactory schemaFactory
Constructor Detail

Meeting

public Meeting()
Initializes the meeting with mk1=mk2=c={0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}, 100 ballots, 2 D tables Creates a default Election Specification (4 questions, 1 out of 2, 1 out of 5, 3 out of 6, rank 3 out of 4)


Meeting

public Meeting(java.lang.String confFile)
        throws java.lang.Exception
Parameters:
confFile - - the file containing MetingOneIn.xml
Throws:
java.lang.Exception - - no Exception is caugth and no Exception is Explicitly thrown

Meeting

public Meeting(org.w3c.dom.Document doc)
        throws java.lang.Exception
Parameters:
doc - - the xml document containing MeetingOneIn.xml
Throws:
java.lang.Exception - - no Exception is caugth and no Exception is Explicitly thrown
Method Detail

init

public void init(byte[] mk1,
                 byte[] mk2)
Sets the two master keys from raw material

Parameters:
mk1 - - master key 1
mk2 - - master key 2

init

public void init(javax.crypto.spec.SecretKeySpec mk1,
                 javax.crypto.spec.SecretKeySpec mk2)
sets the two master key

Parameters:
mk1 - - master key 1
mk2 - - master key 2

getNumberOfBallots

public int getNumberOfBallots()

setNumberOfBallots

public void setNumberOfBallots(int numberOfBallots)

getNumberOfDs

public int getNumberOfDs()

setNumberOfDs

public void setNumberOfDs(int numberOfDs)

getEs

public org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification getEs()

setEs

public void setEs(org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification es)

getPartitions

public java.util.Vector<java.util.Vector<java.lang.Integer>> getPartitions()

setPartitions

public void setPartitions(java.util.Vector<java.util.Vector<java.lang.Integer>> partitions)

getC

public byte[] getC()

getProws

public java.util.TreeMap<java.lang.Integer,Prow> getProws()

setProws

public void setProws(java.util.TreeMap<java.lang.Integer,Prow> prows)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception