|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Process | +--BoundedBufferProcess | +--Producer
A Producer is a bounded buffer process that removes buffers from its empty buffer queue, fills them, and places them onto its full buffer queue. The average amount of time spent filling a buffer is the twiddle time of the producer.
Fields inherited from class BoundedBufferProcess |
empty, full |
Constructor Summary | |
Producer(java.lang.String nm,
double t,
BufferQueue f,
BufferQueue e)
new Producer(nm, t, f, e) returns a new producer and starts executing its run method in a new thread. |
Method Summary | |
void |
step()
prod.step() simulates filling a single buffer. |
Methods inherited from class Process |
run, setSimulationTime, toString, twiddle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Producer(java.lang.String nm, double t, BufferQueue f, BufferQueue e)
Method Detail |
public void step()
step
in class Process
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |