All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.prepriosys.PrePrioSysSimulation

java.lang.Object
   |
   +----java.util.Observable
           |
           +----simula.simset.simulation.Simulation
                   |
                   +----examples.prepriosys.PrePrioSysSimulation

public class PrePrioSysSimulation
extends Simulation
A preemptive system with priorities


Variable Index

 o available
Available servers list
 o busy
List of busy Servers
 o c
Server number
 o i
Queue index
 o k
Number of queues
 o numthrough
Customers served
 o queue
Queues of customers
 o seed
Seed for random generator
 o simtime
Simulation length
 o sojourn
Total sojourn time for customers
 o top
Top element in the queue

Constructor Index

 o PrePrioSysSimulation()

Method Index

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

Variables

 o seed
 public int seed
Seed for random generator

 o top
 public int top
Top element in the queue

 o i
 public int i
Queue index

 o simtime
 public double simtime
Simulation length

 o numthrough
 public int numthrough[]
Customers served

 o sojourn
 public double sojourn[]
Total sojourn time for customers

 o available
 public Head available
Available servers list

 o queue
 public Head queue[]
Queues of customers

 o k
 public int k
Number of queues

 o c
 public int c
Server number

 o busy
 public Head busy[]
List of busy Servers

Constructors

 o PrePrioSysSimulation
 public PrePrioSysSimulation()

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