| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Election
This class holds all of the information about an election.
When unpickling an Election object e, check that
e.version is the same as Election.VERSION.
| Instance Methods | |||
|
|||
|
Inherited from |
|||
| Class Variables | |
| number |
VERSION = 1The version of this class. |
| Instance Variables | |
| string |
description Description of the election. |
| dict |
names Mapping between candidate indices and candidate names. |
| Node |
profile The root of the tree representation of the profile. |
| number |
ranks The maximum number of candidates that can be ranked on a ballot. |
| number |
seats The number of candidates to be elected. |
| number |
version The version of this instance. |
| Properties | |
|
Inherited from |
| Method Details |
Create a new Election
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Wed Nov 23 18:31:26 2011 | http://epydoc.sourceforge.net |