Skip to content
/ jseats Public
forked from pau-minoves/jseats

JSeats is a java implementation of common electoral seat allocation algorithms.

License

Notifications You must be signed in to change notification settings

Scytl/jseats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSeats Build Status

JSeats is a java implementation of common electoral seat allocation algorithms.

Getting started

The JSeats library offers a seat allocation processor based on the following simple architecture:

alt text

You can have example usages here:

Supported methods

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

About

JSeats is a java implementation of common electoral seat allocation algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%