project4
Interface IKitchen

All Known Implementing Classes:
Kitchen

public interface IKitchen


Nested Class Summary
static class IKitchen.NoChefException
          throw this exception when there is no chef to cook
 
Method Summary
 void addChef(Chef chef)
          Add a chef into the list of chefs in the kitchen
 Order cookNextOrder(OrderList orderList)
          the order to be cooked next
 Chef[] getChefs()
          get the list of chefs in the kitchen
 Chef getCurrentChef()
          get the chef in charge of cooking the next order
 Chef removeChef()
          Remove the current chef from the list of chef
 

Method Detail

cookNextOrder

Order cookNextOrder(OrderList orderList)
                    throws OrderList.NoOrderException,
                           IKitchen.NoChefException
the order to be cooked next

Returns:
Throws:
OrderList.NoOrderException
IKitchen.NoChefException

getChefs

Chef[] getChefs()
                throws IKitchen.NoChefException
get the list of chefs in the kitchen

Returns:
Throws:
IKitchen.NoChefException

getCurrentChef

Chef getCurrentChef()
                    throws IKitchen.NoChefException
get the chef in charge of cooking the next order

Returns:
Throws:
IKitchen.NoChefException

addChef

void addChef(Chef chef)
Add a chef into the list of chefs in the kitchen

Parameters:
chef: - chef to be inserted into the list

removeChef

Chef removeChef()
                throws IKitchen.NoChefException
Remove the current chef from the list of chef

Returns:
the current chef
Throws:
IKitchen.NoChefException