コード例 #1
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
コード例 #2
0
ファイル: Coombs.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
コード例 #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
コード例 #4
0
ファイル: Coombs.py プロジェクト: Conservatory/openstv
 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
コード例 #5
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Losers"
    self.weakTieBreakMethod = "strong"
コード例 #6
0
ファイル: SuppVote.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   NoSurplusSTV.__init__(self, b)
   MethodPlugin.__init__(self)
コード例 #7
0
ファイル: IRV.py プロジェクト: drumbuster/OpenSTV
    def __init__(self, b):
        NoSurplusSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.batchElimination = "Zero"
コード例 #8
0
ファイル: SuppVote.py プロジェクト: drumbuster/OpenSTV
 def __init__(self, b):
     NoSurplusSTV.__init__(self, b)
     MethodPlugin.__init__(self)
コード例 #9
0
ファイル: IRV.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Zero"