Example #1
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()