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

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

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

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

    self.batchElimination = "Zero"