|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject4.Chef
project4.QueueChef
public class QueueChef
Field Summary |
---|
Fields inherited from class project4.Chef |
---|
QUEUE_CHEF_TYPE, STACK_CHEF_TYPE, VALUE_CHEF_TYPE |
Constructor Summary | |
---|---|
QueueChef()
|
Method Summary | |
---|---|
Order |
cookNextOrder(OrderList orderList)
cook the next order based on the chef's cooking priority and remove that order from the order list |
Methods inherited from class project4.Chef |
---|
getCreditScore, setBurgerJoint, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueueChef()
Method Detail |
---|
public Order cookNextOrder(OrderList orderList) throws OrderList.NoOrderException
Chef
cookNextOrder
in class Chef
orderList
- the order list for the chef to select an order to cook
OrderList.NoOrderException
- throw this when there are no orders in the
list to cook
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |