Class BoundedBufferMain
java.lang.Object
|
+--BoundedBufferMain
- public abstract class BoundedBufferMain
- extends java.lang.Object
Class BoundedBufferMain defines a main method for running a bounded
buffers simulation.
Field Summary |
static int |
NUM_BUFFERS
NUM_BUFFERS is the number of buffers used in the simulation. |
static int |
NUM_CONSUMERS
NUM_CONSUMERS is the number of Consumers used in the simulation. |
static int |
NUM_PRODUCERS
NUM_PRODUCERS is the number of Producers used in the simulation. |
static long |
PROCESSING_TIME
PROCESSING_TIME is the processing time for each Process in
milliseconds. |
static long |
SIMULATION_TIME
SIMULATION_TIME is the approximate total time for the simulation. |
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIMULATION_TIME
public static final long SIMULATION_TIME
- SIMULATION_TIME is the approximate total time for the simulation.
NUM_BUFFERS
public static final int NUM_BUFFERS
- NUM_BUFFERS is the number of buffers used in the simulation.
NUM_PRODUCERS
public static final int NUM_PRODUCERS
- NUM_PRODUCERS is the number of Producers used in the simulation.
This is also the numer of times that each Consumer gets a full
buffer.
NUM_CONSUMERS
public static final int NUM_CONSUMERS
- NUM_CONSUMERS is the number of Consumers used in the simulation.
This is also the numer of times that each Producer gets an empty
buffer.
PROCESSING_TIME
public static final long PROCESSING_TIME
- PROCESSING_TIME is the processing time for each Process in
milliseconds.
BoundedBufferMain
protected BoundedBufferMain()
- This constructor is disabled.
main
public static void main(java.lang.String[] args)