Example #1
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
Example #2
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
Example #3
0
 def preCount(self):
   NoSurplusSTV.preCount(self)
   
   # Create data structures for speeding up mostLast()
   self.unranked = [None] * self.b.numWeightedBallots
   for i in range(self.b.numWeightedBallots):
     u = []
     b = self.b.getWeightedBallot(i)[1]
     for c in self.continuing:
       if c in b: 
         continue
       u.append(c)
     self.unranked[i] = u
Example #4
0
 def preCount(self):
   NoSurplusSTV.preCount(self)
   
   # Create data structures for speeding up mostLast()
   self.unranked = [None] * self.b.numWeightedBallots
   for i in xrange(self.b.numWeightedBallots):
     u = []
     b = self.b.getWeightedBallot(i)[1]
     for c in self.continuing:
       if c in b: 
         continue
       u.append(c)
     self.unranked[i] = u
Example #5
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Losers"
    self.weakTieBreakMethod = "strong"
Example #6
0
 def __init__(self, b):
   NoSurplusSTV.__init__(self, b)
   MethodPlugin.__init__(self)
Example #7
0
    def __init__(self, b):
        NoSurplusSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.batchElimination = "Zero"
Example #8
0
 def __init__(self, b):
     NoSurplusSTV.__init__(self, b)
     MethodPlugin.__init__(self)
Example #9
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Zero"