コード例 #1
0
 def __init__(self, b):
     # Note: we're deliberate bypassing MeekSTV.__init__ here
     # because we don't want any UI options
     RecursiveSTV.__init__(self, b)
     MethodPlugin.__init__(self)
     self.weakTieBreakMethod = "forward"  # per clauses 19, 34 & 40
     self.prec = 9  # per clause 5
     self.prng_cands = {}
コード例 #2
0
ファイル: MeekNZSTV.py プロジェクト: Findeton/openstv
 def __init__(self, b):
   # Note: we're deliberate bypassing MeekSTV.__init__ here
   # because we don't want any UI options
   RecursiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   self.weakTieBreakMethod = "forward" # per clauses 19, 34 & 40
   self.prec = 9                       # per clause 5
   self.prng_cands = {}
コード例 #3
0
 def postCount(self):
   "RecursiveQXSTV: Report QX stats if enabled"
   RecursiveSTV.postCount(self)
   if False:
     QX.postCount(self, self.R+1)
コード例 #4
0
  def preCount(self):
    RecursiveSTV.preCount(self)

    QX.set_precision(self, self.prec)
    QX.set_guard(self, self.prec)
コード例 #5
0
 def __init__(self, b):
   RecursiveSTV.__init__(self, b)
   self.prec = 9
   self.strongTieBreakMethod = "random" # break all ties randomly
   self.weakTieBreakMethod = "strong"	# treat all ties as strong
   self.surplusLimit = QX.Epsilon
コード例 #6
0
ファイル: WarrenSTV.py プロジェクト: TheLucasNorth/openstv
    def __init__(self, b):
        RecursiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])
コード例 #7
0
ファイル: MeekSTV.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   RecursiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])