def __init__(self, b): NoSurplusSTV.__init__(self, b) MethodPlugin.__init__(self) self.stopCond = ["N"] self.batchElimination = "None" self.unranked = []
def preCount(self): NoSurplusSTV.preCount(self) # Create data structures for speeding up mostLast() self.unranked = [None] * self.b.numWeightedBallots for i in range(self.b.numWeightedBallots): u = [] b = self.b.getWeightedBallot(i)[1] for c in self.continuing: if c in b: continue u.append(c) self.unranked[i] = u
def preCount(self): NoSurplusSTV.preCount(self) # Create data structures for speeding up mostLast() self.unranked = [None] * self.b.numWeightedBallots for i in xrange(self.b.numWeightedBallots): u = [] b = self.b.getWeightedBallot(i)[1] for c in self.continuing: if c in b: continue u.append(c) self.unranked[i] = u
def __init__(self, b): NoSurplusSTV.__init__(self, b) MethodPlugin.__init__(self) self.batchElimination = "Losers" self.weakTieBreakMethod = "strong"
def __init__(self, b): NoSurplusSTV.__init__(self, b) MethodPlugin.__init__(self)
def __init__(self, b): NoSurplusSTV.__init__(self, b) MethodPlugin.__init__(self) self.batchElimination = "Zero"