Example #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"
Example #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"
Example #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"
Example #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"
Example #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"]
Example #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"])
Example #7
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"
        ])
Example #8
0
  def preCount(self):
    WeightedInclusiveSTV.preCount(self)

    self.optionsMsg = "Using a %s threshold." % \
                      string.join(self.threshName, "-")
Example #9
0
    def preCount(self):
        WeightedInclusiveSTV.preCount(self)

        self.optionsMsg = "Using a %s threshold." % \
                          string.join(self.threshName, "-")