|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectSupplier
public class Supplier
A supplier of grains. CS 537, Spring 2007, Project 2.
Constructor Summary | |
---|---|
Supplier(int iterations)
Creates a new Supplier. |
Method Summary | |
---|---|
Order |
getProduction()
Indicates the amount of each grain delivered. |
void |
run()
Main loop. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Supplier(int iterations)
iterations
- the number of times to iterate before terminating.Method Detail |
---|
public Order getProduction()
public void run()
run
in interface Runnable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |