Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
G
H
I
L
M
N
O
P
R
S
T
U
V
B
Broker
- interface
Broker
.
CS 537, Spring 2004, Project 2.
BrokerImplementation
- class
BrokerImplementation
.
CS 537, Spring 2004, Project 2.
BrokerImplementation(int)
- Constructor for class
BrokerImplementation
Creates a new Broker.
C
Consumer
- class
Consumer
.
CS 537, Spring 2004, Project 2.
Consumer()
- Constructor for class
Consumer
D
debug(Object)
- Static method in class
Project2
If the debugging flag is on, prints a message, preceded by the name of the current thread.
deliver(int)
- Method in interface
Broker
Accepts more metal from the refiner.
deliver(int)
- Method in class
BrokerImplementation
Accepts more metal from the refiner.
G
GOLD
- Static variable in interface
IBM
Code for gold.
GetOpt
- class
GetOpt
.
Java version of GNU getopt.
GetOpt(String, String[], String, GetOpt.LongOption[], boolean)
- Constructor for class
GetOpt
Create a new option parser.
GetOpt(String, String[], String)
- Constructor for class
GetOpt
Create a new option parser.
GetOpt(String, String[], String, GetOpt.LongOption[])
- Constructor for class
GetOpt
Create a new option parser.
GetOpt.LongOption
- class
GetOpt.LongOption
.
GetOpt.LongOption(String, int, char)
- Constructor for class
GetOpt.LongOption
get(int[])
- Method in interface
Broker
A request from a consumer.
get(int[])
- Method in class
BrokerImplementation
A purchase request from a consumer.
getAmountOnHand(int[])
- Method in interface
Broker
Reports on the total amount of resources held by this Broker.
getAmountOnHand(int[])
- Method in class
BrokerImplementation
Report on the total amount of resources held by this Broker.
getConsumption(int[])
- Method in class
Consumer
Reports on the total amount consumed thus far.
getProduction(int[])
- Method in class
Refiner
Indicates the amount of each resource delivered.
H
hasArg
- Variable in class
GetOpt.LongOption
I
IBM
- interface
IBM
.
CS 537, Spring 2004, Project 2.
L
longind
- Variable in class
GetOpt
Index in longopts of a long-named option found.
M
METALS
- Static variable in interface
IBM
Number of kinds of metal.
main(String[])
- Static method in class
GetOpt
Main program for testing.
main(String[])
- Static method in class
Project2
Main program for project 2.
metalName
- Static variable in interface
IBM
Table translating metal codes to names.
N
NO_ARG
- Static variable in class
GetOpt.LongOption
name
- Variable in class
GetOpt.LongOption
nextOpt()
- Method in class
GetOpt
Return the next option.
O
OPT_ARG
- Static variable in class
GetOpt.LongOption
optarg
- Variable in class
GetOpt
For communicatino from nextOpt() to the caller.
opterr
- Variable in class
GetOpt
If set to false, to not print messages to System.err for unrecognized options.
optind
- Variable in class
GetOpt
Index in argv of the next element to be scanned.
optopt
- Variable in class
GetOpt
Set to an option character which was unrecognized.
orderToString(int[])
- Static method in class
Project2
Turns an order into a printable string.
P
PLATINUM
- Static variable in interface
IBM
Code for platinum.
Project2
- class
Project2
.
The Project 2 main class.
Project2()
- Constructor for class
Project2
R
REQ_ARG
- Static variable in class
GetOpt.LongOption
Refiner
- class
Refiner
.
CS 537, Spring 2004, Project 2.
Refiner(int)
- Constructor for class
Refiner
Creates a new refiner.
randInt(int)
- Static method in class
Project2
Utility to generate a random integer in the range 0 <= x < max.
randInt(int, int)
- Static method in class
Project2
Utility to generate a random integer in the range min <= x <= max.
run()
- Method in class
Consumer
Main loop.
run()
- Method in class
Refiner
Main loop.
S
StopThread
- exception
StopThread
.
An exception that indicates that the current thread should simply give up and return from its main run() method.
StopThread()
- Constructor for class
StopThread
setVerbose(boolean)
- Static method in class
Project2
Turns debugging output on or off.
specialist(int)
- Static method in class
Project2
Returns the specialist for a given metal.
swap(int, int)
- Method in interface
Broker
Responds to a swap request from another broker.
swap(int, int)
- Method in class
BrokerImplementation
Responds to a swap request from another broker.
T
terminateProgram()
- Static method in class
Project2
Gathers allocation information from the Refiner, Consumers, and Brokers and prints it.
U
URANIUM
- Static variable in interface
IBM
Code for uranium.
V
val
- Variable in class
GetOpt.LongOption
B
C
D
G
H
I
L
M
N
O
P
R
S
T
U
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes