NAME

Vote::Count::Start

VERSION 2.01

SYNOPSIS

use Vote::Count::Start;

my $Election = StartElection(
  BallotFile => $filepath,
  FloorRule => 'TopCount',
  FloorValue => 2,
  LogPath -> '/some/path',
  ...
);

$Election->WriteLog();

Description

Does common startup steps useful accross methods. It includes a lot of the boiler plate for common usage. Use for resolving elections where the rules don't require customization, or as an example for writing more customized methods.

    * Reads Ballots from a file/path

    * Calculates and logs Top Count

    * Calculates and logs Approval

    * Applies a Floor Rule

    * Calculatures and logs a Borda Count

    * Generates a Condorcet Matrix and logs the Win/Loss Summary and the Scores

    * Conducts IRV (default options) and logs the result

    * Returns a Vote::Count Object

Method StartElection

Returns a Vote::Count object performing the above operations.

Parameter BallotSet or BallotFile

It is mandatory to provide either a reference to a BallotSet or to provide a BallotFile for ReadBallots to create a BallotSet.

Paramater FloorRule, FloorValue (optional)

A FloorRule and optional value (see Vote::Count::Floor). If no FloorRule is provide none will be used.

Other Options

Any other option to Vote::Count can just be passed in the arguments list

BUG TRACKER

https://github.com/brainbuz/Vote-Count/issues

AUTHOR

John Karr (BRAINBUZ) brainbuz@cpan.org

CONTRIBUTORS

Copyright 2019-2021 by John Karr (BRAINBUZ) brainbuz@cpan.org.

LICENSE

This module is released under the GNU Public License Version 3. See license file for details. For more information on this license visit http://fsf.org.

SUPPORT

This software is provided as is, per the terms of the GNU Public License. Professional support and customisation services are available from the author.