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"
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"
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"]
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"])
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" ])
def preCount(self): WeightedInclusiveSTV.preCount(self) self.optionsMsg = "Using a %s threshold." % \ string.join(self.threshName, "-")