project4
Class QueueChef

java.lang.Object
  extended by project4.Chef
      extended by project4.QueueChef

public class QueueChef
extends Chef


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

QueueChef

public QueueChef()
Method Detail

cookNextOrder

public Order cookNextOrder(OrderList orderList)
                    throws OrderList.NoOrderException
Description copied from class: Chef
cook the next order based on the chef's cooking priority and remove that order from the order list

Specified by:
cookNextOrder in class Chef
Parameters:
orderList - the order list for the chef to select an order to cook
Returns:
the order which was cooked by the chef
Throws:
OrderList.NoOrderException - throw this when there are no orders in the list to cook