Vote::Count::Common
This Role is consumed by Vote::Count and Vote::Count::Matrix. It provides common methods for the Active Set.
This role is consumed by Vote::Count and Vote::Count::Matrix.
Get Active Set as HashRef to the active set. Changing the new HashRef will change the internal Active Set, GetActive is recommended as it will return a HashRef that is a copy instead.
Returns a hashref containing a copy of the Active Set.
Returns a simple array of the members of the Active Set.
Sets the Active Set to the full choices list of the BallotSet.
Sets the Active Set to provided HashRef. The values to the hashref should evaluate as True.
Same as SetActive except it takes an ArrayRef of the choices to be set as Active.
Get BallotSet
Get a Matrix Object for the Active Set. Generated and cached on the first request.
Regenerate and cache Matrix with current Active Set.
Returns the number of votes cast.
Returns the number of non-exhausted ballots based on the current Active Set.
#FOOTER
BUG TRACKER
https://github.com/brainbuz/Vote-Count/issues
AUTHOR
John Karr (BRAINBUZ) brainbuz@cpan.org
CONTRIBUTORS
Copyright 2019 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.
To install Vote::Count, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Vote::Count
CPAN shell
perl -MCPAN -e shell install Vote::Count
For more information on module installation, please visit the detailed CPAN module installation guide.