Exemplo n.º 1
0
    def preCount(self):
        NonIterative.preCount(self)

        assert (self.completion in [
            "Schwartz Sequential Dropping", "IRV on Smith Set",
            "Borda on Smith Set"
        ])

        self.optionsMsg = "Using %s for the completion method." % self.completion
Exemplo n.º 2
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.completion = "Schwartz Sequential Dropping"
        self.createGuiOptions(["completionMethod"])
        self.e = None
        self.smithSet = []
        self.SSDinfo = ""
        self.pMat = []
        self.dMat = []
Exemplo n.º 3
0
    def preCount(self):
        NonIterative.preCount(self)

        assert (self.ballotCompletion in ["On", "Off"])

        if self.ballotCompletion == "On":
            # The only fractions that will ever appear because of ballot completion
            # is 1/2 so no more precision is necessary.
            self.optionsMsg = "Using ballot completion."
            self.prec = 1
        else:
            self.optionsMsg = "Not using ballot completion."
            self.prec = 0
        self.p = 10**self.prec
Exemplo n.º 4
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.ballotCompletion = "Off"
        self.createGuiOptions(["ballotCompletion"])
Exemplo n.º 5
0
 def __init__(self, b):
   NonIterative.__init__(self, b)
   MethodPlugin.__init__(self)