All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.computer.ComputerSimulation

java.lang.Object
   |
   +----java.util.Observable
           |
           +----simula.simset.simulation.Simulation
                   |
                   +----examples.computer.ComputerSimulation

public class ComputerSimulation
extends Simulation
Multiprogrammed computer system


Variable Index

 o arr
Arrivals frequency
 o free
Free pages available
 o inner
Active jobs queue
 o lastevent
time of last event
 o m
Total pages of memory
 o m1
Lower bound for number of pages requested
 o m2
Upper bound for number of pages requested
 o outer
Waiting jobs queue
 o q
Probability of service request
 o result
Number of jobs arrived
 o s
Size for a quanta of service
 o seed
Seed for random generators
 o server
Process tha performs jobs scheduling and serving
 o simperiod
Simulation length

Constructor Index

 o ComputerSimulation()

Method Index

 o main(String[])
Start the simualtion, instantiating a new Simulation and launching the main program

Variables

 o simperiod
 public double simperiod
Simulation length

 o result
 public int result
Number of jobs arrived

 o inner
 public Head inner
Active jobs queue

 o outer
 public Head outer
Waiting jobs queue

 o seed
 public int seed
Seed for random generators

 o free
 public int free
Free pages available

 o server
 public Server server
Process tha performs jobs scheduling and serving

 o arr
 public double arr
Arrivals frequency

 o m
 public int m
Total pages of memory

 o m1
 public int m1
Lower bound for number of pages requested

 o m2
 public int m2
Upper bound for number of pages requested

 o s
 public double s
Size for a quanta of service

 o q
 public double q
Probability of service request

 o lastevent
 public double lastevent
time of last event

Constructors

 o ComputerSimulation
 public ComputerSimulation()

Methods

 o main
 public static void main(String args[])
Start the simualtion, instantiating a new Simulation and launching the main program

Parameters:
args[] - Ignored
See Also:
Simulation, SimulationMain

All Packages  Class Hierarchy  This Package  Previous  Next  Index