home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / JSL.ZIP / JSL20 / simula / simset / simulation / SimulationMain.java < prev   
Encoding:
Java Source  |  1998-02-20  |  571 b   |  23 lines

  1.  
  2. package simula.simset.simulation;
  3.  
  4. import simula.SimulaException;
  5.  
  6. /**
  7.  * This class envelopes the simulator into a process so that the simulation itself
  8.  * becomes a process, whose main function is the scheduling of the other processes.
  9.  */
  10. public abstract class SimulationMain extends Process {
  11.  
  12.         
  13.  
  14.  
  15. /**
  16. * Creates the main process of the given simulation.
  17. * @exception SimulaException Unable to activate the main process.
  18. */
  19. public  SimulationMain (Simulation _simulation) throws SimulaException {
  20.     super(_simulation) ;
  21.     sim.activate(this) ;
  22. }
  23. }