.gitignore Added .gitignore 6 years ago
.travis.yml beauty fix .travis.yml 6 years ago
BACKLOG.md Added MMP to backlog 6 years ago
LICENSE Initial commit 6 years ago
README.md Update README with FPTP reference 6 years ago
pom.xml update jbehave from 3.9.4 to 3.9.5 6 years ago
You can have example usages here:
Java API example usage
BDD stories
Supported methods
Majority Method
Simple (FPTP or First-Past-The-Post)
Qualified
Absolute
Ranked Method
By votes.
Equal Proportions Method (aka Huntington-Hill)
Largest Remainder Method
Hare
Droop
Imperiali
Highest Averages Method
D'Hondt
Sainte-Laguë (Webster)
Supports user provided first divisor (Modified Sainte-Laguë)
Imperiali
Danish
Usage
Currently JSeats provides both a clean java API and a command line launcher. A web interface is planned. The command line looks like this:
Usage: JSeats [options]
Options:
-c, --candidate
Add candidate to tally. Candidates follow the format Name:Votes.
-h, --help
Print this message.
Default: false
-ic, --input-config
Configuration input file.
-it, --input-tally
Tally input file. Overrides tally provided in configuration via --input-config, if any.
-ld, --list-decorators
List built-in result decorators.
Default: false
-lf, --list-filters
List built-in tally filters.
Default: false
-lm, --list-methods
List built-in seat allocation methods.
Default: false
-m, --method
Seat allocation method to use. See --list-methods for available methods.
-oc, --output-config
Configuration output file.
-o, --output-result
Result output file.
-ot, --output-tally
Tally output file.
-pv, --potential-votes
Potential votes. If not set, defaults to effective votes (sum of all casted votes).
Default: -1
-d, --processor-property
Processor properties as in -D numberOfSeats=105.
-v, --verbose
Increase level of verbosity.
Default: false
Thanks for showing off the nerdiness, now what does all this gibberish mean???
I don’t speak Java, but seems to me that all that’s necessary is...
totalvotes += newvotes
cloned for safe keeping.