def __init__(self, inputFile, fileStart, fileEnd, N, outputFile): assert fileStart >= 0 assert fileStart <= fileEnd Target.__init__(self, time=0.00045) self.inputFile = inputFile self.fileStart = fileStart self.fileEnd = fileEnd self.N = N self.outputFile = outputFile
def __init__(self, depth=0): Target.__init__(self, time=random.random() * 10) self.tempFileName = getRandomAlphaNumericString() self.depth = depth
def __init__(self, inputFile1, inputFile2, outputFile): Target.__init__(self, time=0.0007) self.inputFile1 = inputFile1 self.inputFile2 = inputFile2 self.outputFile = outputFile
def __init__(self, inputFile, N): Target.__init__(self, time=0.00025, memory=1000000, cpu=1) self.inputFile = inputFile self.N = N
def __init__(self, tempOutputFile, outputFile): Target.__init__(self, time=0.0031) self.tempOutputFile = tempOutputFile self.outputFile = outputFile
def __init__(self): Target.__init__(self, 0)
def __init__(self, followOnTargets): Target.__init__(self, 0) self.followOnTargets = followOnTargets for target in self.followOnTargets: #So that we can un-pickle the children for importString in target.importStrings: self.importStrings.add(importString)
def __init__(self, tempFileName): #Try requesting random amounts of CPU and memory requirements.. self.requestedMemory = int(1 + random.random() *100000000) self.requestedCpu = int(1 + random.random() * 1) Target.__init__(self, time=random.random() * 10, memory=self.requestedMemory, cpu=self.requestedCpu) self.tempFileName = tempFileName
def __init__(self, treePointer): Target.__init__(self, 10) self.treePointer = treePointer
def __init__(self, tempFileTree): Target.__init__(self, 10) self.tempFileTree = tempFileTree
def __init__(self): Target.__init__(self, 5) self.depth = 0
def __init__(self, tempFileName): Target.__init__(self, time=random.random() * 10) self.tempFileName = tempFileName