software.engine
Class MeetingTwo
java.lang.Object
software.common.Meeting
software.engine.MeetingTwo
public class MeetingTwo
- extends Meeting
Given a set of ballots in the P table, it opens all the commitments related to them
(in the P table and in all the D tables)
- Author:
- stefan
|
Method Summary |
void |
go(java.lang.String outputFile)
Precondition: it must have in memory the set of P rows to be opened |
void |
go(java.lang.String inFilePath,
java.lang.String outFile)
reads in memory all the ballots that should be opened and calls go(outFile) |
static void |
main(java.lang.String[] args)
debug method |
void |
makePrints(java.lang.String printOutputFile,
java.lang.String mapOutputFile)
Takes all the ballots that have not been opened and publishes them in
clear text in a file that is going to be used for producing (printing)
ballots. |
| Methods inherited from class software.common.Meeting |
getC, getEs, getNumberOfBallots, getNumberOfDs, getPartitions, getProws, init, init, setEs, setNumberOfBallots, setNumberOfDs, setPartitions, setProws |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MeetingTwoInSchema
public static java.lang.String MeetingTwoInSchema
MeetingTwoOutSchema
public static java.lang.String MeetingTwoOutSchema
MeetingTwoPrintsSchema
public static java.lang.String MeetingTwoPrintsSchema
SerialMapSchema
public static java.lang.String SerialMapSchema
MeetingTwo
public MeetingTwo()
throws java.lang.Exception
- Throws:
java.lang.Exception
MeetingTwo
public MeetingTwo(java.lang.String confFile)
throws java.lang.Exception
- Throws:
java.lang.Exception
MeetingTwo
public MeetingTwo(org.w3c.dom.Document doc)
throws java.lang.Exception
- Throws:
java.lang.Exception
go
public void go(java.lang.String inFilePath,
java.lang.String outFile)
throws java.lang.Exception
- reads in memory all the ballots that should be opened and calls go(outFile)
- Parameters:
inFilePath - outFile -
- Throws:
java.lang.Exception - - no Exception is caugth and no Exception is Explicitly thrown
go
public void go(java.lang.String outputFile)
throws java.lang.Exception
- Precondition: it must have in memory the set of P rows to be opened
- Parameters:
outputFile - - where the xml file with the opened commitment is written
- Throws:
java.lang.Exception - itthe meeting wasn't initialized with the two master keys
makePrints
public void makePrints(java.lang.String printOutputFile,
java.lang.String mapOutputFile)
throws java.lang.Exception
- Takes all the ballots that have not been opened and publishes them in
clear text in a file that is going to be used for producing (printing)
ballots. It remaps tehm to have continous numbers, starting from 0.
This method must be explictly called when running meeting two.
- Parameters:
printOutputFile - mapOutputFile -
- Throws:
java.lang.Exception - - no Exception is caugth and no Exception is Explicitly thrown
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- debug method
- Parameters:
args -
- Throws:
java.lang.Exception