skidooesy / stv

Automatically exported from code.google.com/p/stv
0 stars 0 forks source link

Modify STV class hierarchy #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current STV class hierarchy is:

Class STV
    Class NoSurplusSTV
    Class UnitarySTV
    Class GregorySTV
    Class InclusiveSTV
    Class RecursiveSTV
        Class RecursiveQXSTV

I'm going to change this to something like:

Class STV
    Class OrderDependentSTV (replaces Class UnitarySTV)
    Class OrderIndependentSTV
        Class NoSurplusSTV
        Class GregorySTV
        Class InclusiveSTV
        Class RecursiveSTV
            Class RecursiveQXSTV

I think it makes sense to have the primary division of STV methods be
whether they use individual ballots or weighted ballots.  Right now, there
is some duplicative code that could be eliminated if we change the
hierarchy in this way.

Original issue reported on code.google.com by jeff.oneill on 28 Aug 2009 at 3:38

GoogleCodeExporter commented 9 years ago

Original comment by jeff.oneill on 21 Sep 2009 at 2:35