Package edu.pdx.cs410J.net
Class McDonalds
java.lang.Object
edu.pdx.cs410J.net.McDonalds
This class models a
McDonalds
. There are a bunch of
McCustomer
s who all want a BigMac(tm). There are a
bunch of liberal arts majors, er, McEmployee
s who cook
the BigMacs(tm). Each McCustomer
and
McEmployee
runs in his or her own thread.-
Constructor Summary
ConstructorDescriptionMcDonalds
(int nBigMacs) Creates a newMcDonalds
with a given number of BigMacs to cook. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Read the number ofMcCustomer
s and the number ofMcEmployee
s from the command line.boolean
Returnstrue
if there are more BigMacs to cook.
-
Constructor Details
-
McDonalds
Creates a newMcDonalds
with a given number of BigMacs to cook.
-
-
Method Details
-
moreBigMacs
Returnstrue
if there are more BigMacs to cook. -
main
Read the number ofMcCustomer
s and the number ofMcEmployee
s from the command line. Spin off threads for each one and what minimum wage at work.
-