project4
Class ValueChef

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

public class ValueChef
extends project4.Chef


Field Summary
 
Fields inherited from class project4.Chef
QUEUE_CHEF_TYPE, STACK_CHEF_TYPE, VALUE_CHEF_TYPE
 
Constructor Summary
ValueChef()
           
 
Method Summary
 project4.Order cookNextOrder(project4.OrderList orderList)
          Cook next order by a ValueChef
 
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

ValueChef

public ValueChef()
Method Detail

cookNextOrder

public project4.Order cookNextOrder(project4.OrderList orderList)
                             throws project4.OrderList.NoOrderException
Cook next order by a ValueChef

Specified by:
cookNextOrder in class project4.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:
project4.OrderList.NoOrderException - throw this when there are no orders in the list to cook