Пример #1
0
 def __init__(self, host, port, myRam, nodeName, instructionFile):
     Observable.__init__(self)
     self.myRam = myRam
     self.nodeName = nodeName
     self.diskAccessCount = 0
     self.localCacheHitCount = 0
     self.neighbourCacheHitCount = 0
     self.diskAccessCount = 0
     self.localCacheHitCount = 0
     self.instructionSheet = []
     
     if instructionFile:
         self.instructionSheet = InstructionParser.getInstructionFromFile(instructionFile)
Пример #2
0
 def getInstructionSheet(self):
     return InstructionParser.getInstructionFromFile(r"C:\GITProjects\CapstonePy\resources\node1.txt")