Here is how to use the software. It assumes that you have java working, downloaded the software, have an input file that you want to process and have a DOS or shell window open in the appropriate directory.
In the examples, you will see something like:
java -cp Vote-0-4.jar VoteMain -system stv-meek -seats 3 examples/colours-cand.csv
There are two parts to this:
java -cp Vote-0-4.jar VoteMain
just tells java to run the VoteMain package from the Vote-0-4.jar file. This is the same each time the program is run. The second part:
-system stv-meek -seats 3 examples/colours-cand.csv
is a list of command line switches specifying such things as the voting system and the input file, in this case specifying that STV is to be used to select 3 candidates and colours-cand.csv in the folder examples is to be used as the input file.
Here is a table of all the parameters:
Switch | Required? | Meaning |
-system name |
|
This is one of:
|
-seats number |
|
The number of candiates to be elected. For stvse-meek, this option may be given with the parameter ordered. |
-input filename |
|
The input file which the votes are to be read from. The -input is optional as the first parameter without a switch specifying what it is will be used as the input file. |
-output filename |
|
The input file which the results are to be written to. If not specified, output will be written to the screen. The -output is optional as the second parameter without a switch specifying what it is will be used as the output file. |
-logfile filename |
|
The file to write any logging, progress or error information to. If not specified, this will get written to the screen. |
-debug |
|
Whether or not to print full working and debugging information. Warning: this can be verbose |
-log |
|
Whether or not to print logging information. This is recommended |
-min-ranks number |
|
How many candidates each voter must rank. Defaults to 1 |
-nostrict-legal |
|
Only logs certain types of voting irregularites rather than giving an error |
-nostrict-min-ranks |
|
Only logs a voter ranking insufficient candidates rather than giving an error (in a future version of the software, that vote will not be counted) |