Example #1
0
def getInfo(name):
  global inodes
  info=""
  inode=inodes[name]
  for block in inode.blocks:
    info=info+str(RamController.read(block))

  return info
Example #2
0
  def __init__(self):

    #CARGAR ARCHIVOS DE RAM Y DISCO A VARIABLES self.ram y self.disc (o algo asi)
    Disc.boot()
    RamController.startRam()

    self.simTime = 0 #Operating System 
    self.oSystem = OS() #Simulation time
    CommandLineTools.Cls()
    while True:
      print "Ingrese ruta archivo input..."
      path = raw_input()
      if CommandLineTools.FileExists(path):
        break
      print "Error: El archivo no existe. Por favor intente nuevamente...\n"
    self.eventsList =  CommandLineTools.GetInputFromPath(path) #Contains the processes that will arrive to the OS during the simulation
    self.StartSimulation()