예제 #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
 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
    def __init__(self, b):
        RecursiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])
예제 #7
0
 def __init__(self, b):
   RecursiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])