|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectConsumer
CS 537, Fall 2004, Project 3. A consumer of metals.
| Field Summary |
| Fields inherited from interface IBM |
GOLD, metalName, METALS, PLATINUM, URANIUM |
| Constructor Summary | |
Consumer(int id,
Broker broker)
Create a new Consumer object. |
|
| Method Summary | |
void |
printReport()
Print information about the history of this consumer. |
void |
run()
Main loop. |
| Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Consumer(int id,
Broker broker)
id - the unique id of this consumer.broker - the broker to contact to get stuff.| Method Detail |
public void printReport()
public void run()
run in interface Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||