Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
U
V
W
B
Broker
- class
Broker
.
CS 537, Fall 2004, Project 3.
Broker(int)
- Constructor for class
Broker
Creates a new Broker.
C
Consumer
- class
Consumer
.
CS 537, Fall 2004, Project 3.
Consumer(int, Broker)
- Constructor for class
Consumer
Create a new Consumer object.
cancel(int[])
- Method in class
Order
Rejects this Order.
complete()
- Method in class
Order
Signals completion.
consumers()
- Static method in class
Project3
Get the number of consumers.
D
debug(Object)
- Static method in class
Project3
Debug print.
deliver(int[])
- Method in class
Broker
Accepts more resources from the supplier.
E
expo(Random, int)
- Static method in class
Project3
Generate an exponentially distributed random number.
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, int[])
- Method in class
Broker
Accepts a request from a consumer and blocks the consumer until the request can be satisfied.
give(int[], int)
- Method in class
Order
Gives some resources to this Order from supply.
H
hasArg
- Variable in class
GetOpt.LongOption
I
IBM
- interface
IBM
.
CS 537, Spring 2004, Project 3.
L
lessOrEqual(int[])
- Method in class
Order
Check whether the remainder of this request is less than or equal to amt (in all metals).
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
Project3
Main program for project 3.
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
Order
- class
Order
.
CS 537, Fall 2004, Project 3.
Order(int, int[])
- Constructor for class
Order
Creates a new Order.
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.
P
PLATINUM
- Static variable in interface
IBM
Code for platinum.
Project3
- class
Project3
.
The Project 3 main class.
Project3()
- Constructor for class
Project3
printReport()
- Method in class
Consumer
Print information about the history of this consumer.
R
REQ_ARG
- Static variable in class
GetOpt.LongOption
Refiner
- class
Refiner
.
CS 537, Fall 2004, Project 3.
Refiner(Broker, int)
- Constructor for class
Refiner
Creates a new supplier.
remaining()
- Method in class
Order
Returns the remaining amount requested.
requestToString(int[])
- Static method in class
Project3
Turn a request for resources into a printable string.
run()
- Method in class
Broker
Main loop.
run()
- Method in class
Consumer
Main loop.
run()
- Method in class
Refiner
Main loop.
S
satisfied()
- Method in class
Order
Checks whether this order is satified.
seq
- Variable in class
Order
The sequence number of this request in the order received.
setVerbose(boolean)
- Static method in class
Project3
Turn debugging output on or off.
shutDown()
- Method in class
Broker
Tells this Broker to shut down.
size()
- Method in class
Order
Returns the total amount requested.
T
time()
- Static method in class
Project3
Handy procedure for timing.
toString()
- Method in class
Order
Turns this Order into a printable string.
U
URANIUM
- Static variable in interface
IBM
Code for uranium.
V
val
- Variable in class
GetOpt.LongOption
W
waitFor()
- Method in class
Order
Waits for this order to be fulfilled.
B
C
D
E
G
H
I
L
M
N
O
P
R
S
T
U
V
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes