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

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

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
Beispiel #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
Beispiel #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
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

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

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

    self.batchElimination = "Zero"