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
McCustomers who all want a BigMac(tm). There are a
bunch of liberal arts majors, er, McEmployees who cook
the BigMacs(tm). Each McCustomer and
McEmployee runs in his or her own thread.-
Constructor Summary
ConstructorsConstructorDescriptionMcDonalds(int nBigMacs) Creates a newMcDonaldswith a given number of BigMacs to cook. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRead the number ofMcCustomers and the number ofMcEmployees from the command line.booleanReturnstrueif there are more BigMacs to cook.
-
Constructor Details
-
McDonalds
Creates a newMcDonaldswith a given number of BigMacs to cook.
-
-
Method Details
-
moreBigMacs
Returnstrueif there are more BigMacs to cook. -
main
Read the number ofMcCustomers and the number ofMcEmployees from the command line. Spin off threads for each one and what minimum wage at work.
-