Exemple #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
Exemple #2
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
Exemple #3
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 = []
Exemple #4
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 = []
Exemple #5
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
Exemple #6
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
Exemple #7
0
  def __init__(self, b):
    NonIterative.__init__(self, b)
    MethodPlugin.__init__(self)

    self.ballotCompletion = "Off"
    self.createGuiOptions(["ballotCompletion"])
Exemple #8
0
 def __init__(self, b):
   NonIterative.__init__(self, b)
   MethodPlugin.__init__(self)
Exemple #9
0
    def preCount(self):
        NonIterative.preCount(self)

        self.optionsMsg = ""
        self.prec = 0
        self.p = 10**self.prec
Exemple #10
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions([])
Exemple #11
0
    def preCount(self):
        NonIterative.preCount(self)

        self.optionsMsg = ""
        self.prec = 0
        self.p = 10 ** self.prec
Exemple #12
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions([])
Exemple #13
0
 def __init__(self, b):
     NonIterative.__init__(self, b)
     MethodPlugin.__init__(self)
Exemple #14
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.ballotCompletion = "Off"
        self.createGuiOptions(["ballotCompletion"])