Class Brewer

Object
  extended by Brewer
All Implemented Interfaces:
Runnable

public class Brewer
extends Object
implements Runnable

A consumer of grain. CS 537, Spring 2007, Project 2.


Constructor Summary
Brewer()
           
 
Method Summary
 Order getConsumption()
          Reports on the total amount consumed thus far.
 void run()
          Main loop.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Brewer

public Brewer()
Method Detail

getConsumption

public Order getConsumption()
Reports on the total amount consumed thus far.

Returns:
the amount consumed thus far.

run

public void run()
Main loop. Repeatedly generates random orders to random brokers.

Specified by:
run in interface Runnable