コード例 #1
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
コード例 #2
0
ファイル: Coombs.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.stopCond = ["N"]
    self.batchElimination = "None"
    self.unranked = []
コード例 #3
0
ファイル: ScottishSTV.py プロジェクト: Conservatory/openstv
 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"
コード例 #4
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"
コード例 #5
0
ファイル: MeekNZSTV.py プロジェクト: Findeton/openstv
 def __init__(self, b):
   # Note: we're deliberate bypassing MeekSTV.__init__ here
   # because we don't want any UI options
   RecursiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   self.weakTieBreakMethod = "forward" # per clauses 19, 34 & 40
   self.prec = 9                       # per clause 5
   self.prng_cands = {}
コード例 #6
0
 def __init__(self, b):
     # Note: we're deliberate bypassing MeekSTV.__init__ here
     # because we don't want any UI options
     RecursiveSTV.__init__(self, b)
     MethodPlugin.__init__(self)
     self.weakTieBreakMethod = "forward"  # per clauses 19, 34 & 40
     self.prec = 9  # per clause 5
     self.prng_cands = {}
コード例 #7
0
ファイル: MinneapolisSTV.py プロジェクト: drumbuster/OpenSTV
    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"
コード例 #8
0
ファイル: NIrelandSTV.py プロジェクト: drumbuster/OpenSTV
 def __init__(self, b):
   GregorySTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.prec = 2
   self.weakTieBreakMethod = "forward"
   self.threshName = ["Droop", "Static", "Whole"]
   self.delayedTransfer = "On"
   self.batchElimination = "Losers"
コード例 #9
0
ファイル: MinneapolisSTV.py プロジェクト: szborows/openstv
    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"
コード例 #10
0
ファイル: ERS97STV.py プロジェクト: u1f35c/openstv
    def __init__(self, b):
        GregorySTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.prec = 2
        self.weakTieBreakMethod = "forward"
        self.threshName = ["ERS97", "Dynamic", "Fractional"]
        self.delayedTransfer = "On"
        self.batchElimination = "LosersERS97"
        self.numStages = 0
コード例 #11
0
ファイル: RTSTV.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    OrderDependentSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.threshName = ["Droop", "Static", "Whole"]
    self.delayedTransfer = "Off"
    self.batchElimination = "Zero"
    self.batchCutoff = 50
    self.createGuiOptions(["thresh0", "thresh1", "delayedTransfer",
                          "batchElimination", "batchCutoff"])
コード例 #12
0
ファイル: ERS97STV.py プロジェクト: Findeton/openstv
 def __init__(self, b):    
   GregorySTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.prec = 2
   self.weakTieBreakMethod = "forward"
   self.threshName = ["ERS97", "Dynamic", "Fractional"]
   self.delayedTransfer = "On"
   self.batchElimination = "LosersERS97"
   self.numStages = 0
コード例 #13
0
ファイル: Condorcet.py プロジェクト: Conservatory/openstv
  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 = []
コード例 #14
0
    def __init__(self, b):
        OrderDependentSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.batchElimination = "Cutoff"
        self.batchCutoff = 50
        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "Off"
        self.saveWinnersBallots = False
        self.outputDir = None
        self.createGuiOptions(["saveWinnersBallots"])
コード例 #15
0
ファイル: CambridgeSTV.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   OrderDependentSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.batchElimination = "Cutoff"
   self.batchCutoff = 50
   self.threshName = ["Droop", "Static", "Whole"]
   self.delayedTransfer = "Off"
   self.saveWinnersBallots = False
   self.outputDir = None
   self.createGuiOptions(["saveWinnersBallots"])
コード例 #16
0
ファイル: Condorcet.py プロジェクト: tonefreqhz/openstv
    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 = []
コード例 #17
0
    def __init__(self, b):
        OrderDependentSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.threshName = ["Droop", "Static", "Whole"]
        self.delayedTransfer = "Off"
        self.batchElimination = "Zero"
        self.batchCutoff = 50
        self.createGuiOptions([
            "thresh0", "thresh1", "delayedTransfer", "batchElimination",
            "batchCutoff"
        ])
コード例 #18
0
ファイル: FTSTV.py プロジェクト: Conservatory/openstv
  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"])
コード例 #19
0
ファイル: GPCA2000STV.py プロジェクト: drumbuster/OpenSTV
 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"]
コード例 #20
0
ファイル: FTSTV.py プロジェクト: drumbuster/OpenSTV
    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"
        ])
コード例 #21
0
ファイル: QPQ.py プロジェクト: Findeton/openstv
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.threshName = ["Droop", "Dynamic", "Fractional"]
   self.prec = 10
   self.weakTieBreakMethod = "strong"  # treat all ties as strong
   self.optRestart = True              # option: restart after exclusion
   self.stopCond = ["Continuing Empty"]
   self.va = []         # va[r] is number of active ballots at round r
   self.vc = []         # vc[r][c] is candidate c's votes at round r
   # satisfy reporter
   self.exhausted = []
   self.surplus = []
   self.tc = []         # tc[r][c] is candidate c's ballots' contributions at round r
   self.tx = []         # tx[r] is contribution of inactive ballots at round r
   self.thresh = []     # thresh[r] is the winning quota at round r
   self.votes = []      # votes[c] stores the indices of all votes for candidate c.
   self.restart = False
コード例 #22
0
ファイル: QPQ.py プロジェクト: drumbuster/OpenSTV
 def __init__(self, b):
     Iterative.__init__(self, b)
     MethodPlugin.__init__(self)
     self.threshName = ["Droop", "Dynamic", "Fractional"]
     self.prec = 10
     self.weakTieBreakMethod = "strong"  # treat all ties as strong
     self.optRestart = True  # option: restart after exclusion
     self.stopCond = ["Continuing Empty"]
     self.va = []  # va[r] is number of active ballots at round r
     self.vc = []  # vc[r][c] is candidate c's votes at round r
     # satisfy reporter
     self.exhausted = []
     self.surplus = []
     self.tc = [
     ]  # tc[r][c] is candidate c's ballots' contributions at round r
     self.tx = []  # tx[r] is contribution of inactive ballots at round r
     self.thresh = []  # thresh[r] is the winning quota at round r
     self.votes = [
     ]  # votes[c] stores the indices of all votes for candidate c.
     self.restart = False
コード例 #23
0
ファイル: Bucklin.py プロジェクト: Findeton/openstv
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.prec = 0
コード例 #24
0
ファイル: MeekSTV.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   RecursiveSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])
コード例 #25
0
ファイル: BordaNauru.py プロジェクト: tonefreqhz/openstv
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions([])
コード例 #26
0
ファイル: WarrenSTV.py プロジェクト: TheLucasNorth/openstv
    def __init__(self, b):
        RecursiveSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions(["prec", "thresh0", "thresh1", "thresh2"])
コード例 #27
0
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.ballotCompletion = "Off"
        self.createGuiOptions(["ballotCompletion"])
コード例 #28
0
    def __init__(self, b):
        RecursiveQXSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions(["prec"])
コード例 #29
0
ファイル: BordaCustom.py プロジェクト: pirata-cat/openstv
    def __init__(self, b):
        NonIterative.__init__(self, b)
        MethodPlugin.__init__(self)

        self.createGuiOptions([])
コード例 #30
0
ファイル: SNTV.py プロジェクト: tonefreqhz/openstv
 def __init__(self, b):
     NonIterative.__init__(self, b)
     MethodPlugin.__init__(self)
コード例 #31
0
ファイル: SuppVote.py プロジェクト: drumbuster/OpenSTV
 def __init__(self, b):
     NoSurplusSTV.__init__(self, b)
     MethodPlugin.__init__(self)
コード例 #32
0
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Losers"
    self.weakTieBreakMethod = "strong"
コード例 #33
0
ファイル: Approval.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   NonIterative.__init__(self, b)
   MethodPlugin.__init__(self)
コード例 #34
0
ファイル: MeekQXSTV.py プロジェクト: Conservatory/openstv
 def __init__(self, b): 
   RecursiveQXSTV.__init__(self, b)
   MethodPlugin.__init__(self)
   
   self.createGuiOptions(["prec"])
コード例 #35
0
ファイル: Bucklin.py プロジェクト: drumbuster/OpenSTV
 def __init__(self, b):
   Iterative.__init__(self, b)
   MethodPlugin.__init__(self)
   self.prec = 0
コード例 #36
0
ファイル: Borda.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    NonIterative.__init__(self, b)
    MethodPlugin.__init__(self)

    self.ballotCompletion = "Off"
    self.createGuiOptions(["ballotCompletion"])
コード例 #37
0
ファイル: IRV.py プロジェクト: drumbuster/OpenSTV
    def __init__(self, b):
        NoSurplusSTV.__init__(self, b)
        MethodPlugin.__init__(self)

        self.batchElimination = "Zero"
コード例 #38
0
ファイル: SuppVote.py プロジェクト: Conservatory/openstv
 def __init__(self, b):
   NoSurplusSTV.__init__(self, b)
   MethodPlugin.__init__(self)
コード例 #39
0
ファイル: IRV.py プロジェクト: Conservatory/openstv
  def __init__(self, b):
    NoSurplusSTV.__init__(self, b)
    MethodPlugin.__init__(self)

    self.batchElimination = "Zero"