예제 #1
0
파일: QPQ.py 프로젝트: Findeton/openstv
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.threshName = ["Droop", "Dynamic", "Fractional"]
   self.prec = 10
   self.weakTieBreakMethod = "strong"  # treat all ties as strong
   self.optRestart = True              # option: restart after exclusion
   self.stopCond = ["Continuing Empty"]
   self.va = []         # va[r] is number of active ballots at round r
   self.vc = []         # vc[r][c] is candidate c's votes at round r
   # satisfy reporter
   self.exhausted = []
   self.surplus = []
   self.tc = []         # tc[r][c] is candidate c's ballots' contributions at round r
   self.tx = []         # tx[r] is contribution of inactive ballots at round r
   self.thresh = []     # thresh[r] is the winning quota at round r
   self.votes = []      # votes[c] stores the indices of all votes for candidate c.
   self.restart = False
예제 #2
0
파일: QPQ.py 프로젝트: drumbuster/OpenSTV
 def __init__(self, b):
     Iterative.__init__(self, b)
     MethodPlugin.__init__(self)
     self.threshName = ["Droop", "Dynamic", "Fractional"]
     self.prec = 10
     self.weakTieBreakMethod = "strong"  # treat all ties as strong
     self.optRestart = True  # option: restart after exclusion
     self.stopCond = ["Continuing Empty"]
     self.va = []  # va[r] is number of active ballots at round r
     self.vc = []  # vc[r][c] is candidate c's votes at round r
     # satisfy reporter
     self.exhausted = []
     self.surplus = []
     self.tc = [
     ]  # tc[r][c] is candidate c's ballots' contributions at round r
     self.tx = []  # tx[r] is contribution of inactive ballots at round r
     self.thresh = []  # thresh[r] is the winning quota at round r
     self.votes = [
     ]  # votes[c] stores the indices of all votes for candidate c.
     self.restart = False
예제 #3
0
파일: Bucklin.py 프로젝트: Findeton/openstv
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.prec = 0
예제 #4
0
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.prec = 0