Esempio 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
Esempio n. 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
Esempio n. 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 = []
Esempio n. 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 = []
Esempio n. 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
Esempio n. 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
Esempio n. 7
0
  def __init__(self, b):
    NonIterative.__init__(self, b)
    MethodPlugin.__init__(self)

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

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

        self.createGuiOptions([])
Esempio n. 11
0
    def preCount(self):
        NonIterative.preCount(self)

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

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

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