예제 #1
0
 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
예제 #2
0
 def __init__(self, depth=0):
     Target.__init__(self, time=random.random() * 10)
     self.tempFileName = getRandomAlphaNumericString()
     self.depth = depth
예제 #3
0
 def __init__(self, inputFile1, inputFile2, outputFile):
     Target.__init__(self, time=0.0007)
     self.inputFile1 = inputFile1
     self.inputFile2 = inputFile2
     self.outputFile = outputFile
예제 #4
0
 def __init__(self, inputFile, N):
     Target.__init__(self, time=0.00025, memory=1000000, cpu=1)
     self.inputFile = inputFile
     self.N = N
예제 #5
0
 def __init__(self, tempOutputFile, outputFile):
     Target.__init__(self, time=0.0031)
     self.tempOutputFile = tempOutputFile
     self.outputFile = outputFile
예제 #6
0
파일: stack.py 프로젝트: sbenz/jobTree
 def __init__(self):
     Target.__init__(self, 0)
예제 #7
0
파일: stack.py 프로젝트: sbenz/jobTree
 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)
예제 #8
0
 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
예제 #9
0
 def __init__(self, treePointer):
     Target.__init__(self, 10)
     self.treePointer = treePointer
예제 #10
0
 def __init__(self, tempFileTree):
     Target.__init__(self, 10)
     self.tempFileTree = tempFileTree
예제 #11
0
 def __init__(self):
     Target.__init__(self, 5)
     self.depth = 0
예제 #12
0
 def __init__(self, tempFileName):
     Target.__init__(self, time=random.random() * 10)
     self.tempFileName = tempFileName