Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: TigerLikesRoosterNew
jseats directory (4th in the list)

.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

alt text

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

9 posted on 11/26/2020 2:48:09 AM PST by Robert DeLong
[ Post Reply | Private Reply | To 1 | View Replies ]


To: Robert DeLong

Thanks for showing off the nerdiness, now what does all this gibberish mean???


10 posted on 11/26/2020 2:57:11 AM PST by LibFreeUSA ( )
[ Post Reply | Private Reply | To 9 | View Replies ]

To: Robert DeLong
Please remember that some of us are technologically impaired :)


11 posted on 11/26/2020 2:58:15 AM PST by Salamander (Call them by their true name: Pedocrats.)
[ Post Reply | Private Reply | To 9 | View Replies ]

To: Robert DeLong

I don’t speak Java, but seems to me that all that’s necessary is...

totalvotes += newvotes


16 posted on 11/26/2020 3:27:03 AM PST by Fresh Wind (Joe Biden: The best president money can buy.)
[ Post Reply | Private Reply | To 9 | View Replies ]

To: Robert DeLong

cloned for safe keeping.


24 posted on 11/26/2020 4:47:08 AM PST by j_guru
[ Post Reply | Private Reply | To 9 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson