コード例 #1
0
 def __init__(self, memory, file_system, clock):
     self.file_system = file_system(Disc())
     self.memory_admin = MemoryAdmin(AsignacionContinua(memory))
     self.pid = 0
     self.scheduler = Scheduler()
     self.cpu = Cpu(self)
     self.pcb_table = PCBTable()
     self.clock = clock
 def setUp(self):
     self.memory = Memory()
     self.strategy = AsignacionContinua(self.memory)
     self.admin = MemoryAdmin(self.strategy)
     self.pcb = PCB(3, 4, 20, 40, 4)
     self.progr = Programa("un_programa")
     self.instr = Instruccion('Instruccion 1')
     self.progr.agregarInstruccion(self.instr)