home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / JSL.ZIP / JSL20 / examples / computer / Job.java < prev    next >
Encoding:
Java Source  |  1998-02-20  |  695 b   |  34 lines

  1.  
  2. package examples.computer;
  3.  
  4.  
  5. import simula.*;
  6. import simula.simset.* ;
  7. import simula.simset.simulation.*;
  8. import simula.random.* ;
  9.  
  10. /**
  11.  * The job is a process wich requests memory pages
  12.  * @author Andrea Poltronieri
  13.  * @version 1.0 12 Feb 1998
  14.  */
  15.  
  16. public class  Job extends simula.simset.Link {
  17.     /** The active simulation */
  18.     public ComputerSimulation sim ;
  19.     /** Pages requeste by this job */
  20.     public int req ;
  21.  
  22.  
  23. /**
  24. * @param _sim The active Simulation
  25. * @param req Number of pages needed
  26. * @exception SimulaException If any error occurs
  27. */
  28.  
  29. public  Job (ComputerSimulation sim, int req) throws SimulaException {
  30.     super();
  31.     this.sim=sim ;
  32.     this.req=req ;    
  33. }
  34. }