예제 #1
0
 def __init__(self, b):
   WeightedInclusiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.prec = 5
   self.threshName = ["Droop", "Static", "Whole"]
   self.delayedTransfer = "Off"
   self.batchElimination = "None"
예제 #2
0
    def __init__(self, b):
        WeightedInclusiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.prec = 5
        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "Off"
        self.batchElimination = "None"
예제 #3
0
    def __init__(self, b):
        WeightedInclusiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.prec = 4
        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "On"
        self.batchElimination = "Losers"
        self.weakTieBreakMethod = "strong"
예제 #4
0
    def __init__(self, b):
        WeightedInclusiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.prec = 4
        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "On"
        self.batchElimination = "Losers"
        self.weakTieBreakMethod = "strong"
예제 #5
0
 def __init__(self, b):
   WeightedInclusiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.prec = 5
   self.weakTieBreakMethod = "strong"	# treat all ties as strong
   self.threshName = ["Droop", "Static", "Fractional"]
   self.delayedTransfer = "Off"
   self.batchElimination = "Zero"
   # Election is over when we have enough winners or all candidates
   # have been eliminated.
   self.stopCond = ["Know Winners", "Continuing Empty"]
예제 #6
0
  def __init__(self, b):
    WeightedInclusiveSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.prec = 6
    self.threshName = ["Droop", "Static", "Whole"]
    self.delayedTransfer = "Off"
    self.batchElimination = "Zero"
    self.batchCutoff = 0
    self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2",
                          "delayedTransfer", "batchElimination",
                          "batchCutoff"])
예제 #7
0
파일: FTSTV.py 프로젝트: drumbuster/OpenSTV
    def __init__(self, b):
        WeightedInclusiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.prec = 6
        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "Off"
        self.batchElimination = "Zero"
        self.batchCutoff = 0
        self.createGuiOptions([
            "prec", "thresh0", "thresh1", "thresh2", "delayedTransfer",
            "batchElimination", "batchCutoff"
        ])