Serialized Form


Package org.bolson.vote

Class org.bolson.vote.Approval extends VotingSystem implements Serializable

Serialized Fields

ithresh

int ithresh
threshold for voteRating(int[])


fthresh

float fthresh
threshold for voteRating(float[])


dthresh

double dthresh
threshold for voteRating(double[])


voteOverMeanRating

boolean voteOverMeanRating
If true then determine thresholds dynamically based on the mean rating for a specific ballot. NO_VOTE/NaN values in the rating are not counted toward the mean.


talley

int[] talley

Class org.bolson.vote.BordaVotingSystem extends RankedVotingSystem implements Serializable

Serialized Fields

talley

int[] talley

equalUnrankDistrib

boolean equalUnrankDistrib

Class org.bolson.vote.Bucklin extends RankedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

talley

double[] talley

rankRound

int rankRound

equalUnrankDistrib

boolean equalUnrankDistrib

winners

int[] winners
if not null, then contains valid winners. set to null when adding a vote

Class org.bolson.vote.Condorcet extends RatedVotingSystem implements Serializable

Serialized Fields

talley

int[] talley

usedBPM

boolean usedBPM

bpm

int[] bpm

winners

int[] winners

defeatCount

int[] defeatCount

debugsb

java.lang.StringBuffer debugsb

defeatCountDebugClone

int[] defeatCountDebugClone

noVoteIsMinPref

boolean noVoteIsMinPref

noVoteIsAvgPref

boolean noVoteIsAvgPref

noVoteIsNoPref

boolean noVoteIsNoPref

winningVotes

boolean winningVotes

margins

boolean margins

addToBothOnTie

boolean addToBothOnTie

Class org.bolson.vote.CondorcetRTB extends Condorcet implements Serializable

Serialized Fields

talley

int[] talley

dtalley

double[] dtalley

bpm

double[] bpm

message

java.lang.String message

winners

int[] winners

Class org.bolson.vote.Coombs extends RankedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

talley

double[] talley

lastTalley

double[] lastTalley

active

boolean[] active

rankRound

int rankRound

equalUnrankDistrib

boolean equalUnrankDistrib

winners

int[] winners
if not null, then contains valid winners. set to null when adding a vote

Class org.bolson.vote.DistributiveVSWrapper extends VotingSystem implements Serializable

Serialized Fields

they

java.util.Vector<E> they
add VotingSystem-s to this and they will get all votes.


primary

int primary
which one of they gets returned for getWinners, toString, htmlSummary. default to zero. it would probably be better if you kept track of the VotingSystem-s going into this and got results from them separately.

Class org.bolson.vote.EmptyVotingSystem extends VotingSystem implements Serializable

Class org.bolson.vote.GradualApproval extends RatedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

winners

int[] winners

Class org.bolson.vote.Histogram extends VotingSystem implements Serializable

Serialized Fields

outerTableCols

int outerTableCols

b

int[] b
histogram buckets b[numc][blen]


blen

int blen
bucket length per choice


l

double l
value of low bucket


h

double h
value of high bucket


totals

int[] totals
sum of b[numc][blen] -> totals[numc]


maxbucket

int maxbucket

maxtotal

int maxtotal

numvotes

int numvotes

barImgUrl

java.lang.String barImgUrl
URL to insert in generated Histogram HTML. Defaults to relative URL "b.png" .


useSpan

boolean useSpan

valueTitle

java.lang.String valueTitle

MAX_WIDTH

int MAX_WIDTH

MAXIMIZE_WIDTH

boolean MAXIMIZE_WIDTH

Class org.bolson.vote.INR extends RatedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

voterToTrack

int voterToTrack

showIntermedite

boolean showIntermedite

winners

int[] winners

rmsnorm

boolean rmsnorm

inactiveThreshold

double inactiveThreshold

stepSize

double stepSize

debugSteps

java.util.Vector<E> debugSteps

talley

double[] talley

Class org.bolson.vote.IRNR extends RatedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

voterToTrack

int voterToTrack

showIntermedite

boolean showIntermedite

winners

int[] winners

rmsnorm

boolean rmsnorm

debugHistory

java.util.Vector<E> debugHistory

talley

double[] talley

Class org.bolson.vote.IRNRP extends RatedVotingSystem implements Serializable

Serialized Fields

votes

java.util.Vector<E> votes

voterToTrack

int voterToTrack

showIntermedite

boolean showIntermedite

winners

int[] winners

rmsnorm

boolean rmsnorm

bolsonQuota

boolean bolsonQuota

talley

double[] talley

doneIndecies

int[] doneIndecies

debugsb

java.lang.StringBuffer debugsb

Class org.bolson.vote.IRV extends RankedVotingSystem implements Serializable

Serialized Fields

disqualifyTiedVotes

boolean disqualifyTiedVotes

duplicateTiedVotes

boolean duplicateTiedVotes

splitTiedVotes

boolean splitTiedVotes

winners

int[] winners
if not null, then contains valid winners. set to null when adding a vote


dbtext

java.lang.StringBuffer dbtext

dbTextSave

java.lang.String dbTextSave

votes

java.util.Vector<E> votes

winnerBuckets

java.util.Vector<E>[] winnerBuckets

talley

double[] talley

active

boolean[] active

totalVotes

int totalVotes

numWinners

int numWinners

choiceIndecies

int[] choiceIndecies

Class org.bolson.vote.PairwiseRatingDifferentialSummation extends RatedVotingSystem implements Serializable

Serialized Fields

talley

double[] talley

defeatCount

int[] defeatCount

winners

int[] winners

message

java.lang.String message

noVoteImpliesNoPreference

boolean noVoteImpliesNoPreference

Class org.bolson.vote.RankedPairs extends Condorcet implements Serializable

Class org.bolson.vote.RankedVotingSystem extends VotingSystem implements Serializable

Class org.bolson.vote.RatedVotingSystem extends VotingSystem implements Serializable

Class org.bolson.vote.RawRating extends RatedVotingSystem implements Serializable

Serialized Fields

normalize

boolean normalize

normalizeL2

boolean normalizeL2

stretch

boolean stretch

talley

double[] talley

Class org.bolson.vote.STV extends RankedVotingSystem implements Serializable

Serialized Fields

winners

int[] winners
if not null, then contains valid winners. set to null when adding a vote


winnerBuckets

java.util.Vector<E>[] winnerBuckets

talley

double[] talley

active

boolean[] active

totalVotes

int totalVotes

debugsb

java.lang.StringBuffer debugsb

choiceIndecies

int[] choiceIndecies

disqualifyTiedVotes

boolean disqualifyTiedVotes

duplicateTiedVotes

boolean duplicateTiedVotes

splitTiedVotes

boolean splitTiedVotes

quotaStyle

int quotaStyle

Class org.bolson.vote.SynchronizedVSWrapper extends VotingSystem implements Serializable

Serialized Fields

wrapped

VotingSystem wrapped

Class org.bolson.vote.VotingSystem extends java.lang.Object implements Serializable

Serialized Fields

numc

int numc
number of candidates


debug

boolean debug
Debug info collecting flag. If true, then an implementation should collect data that can be retreived by getDebugText() and getDebugHTML()

See Also:
VotingSystem.getDebugText(String[]), VotingSystem.getDebugHTML(String[])