|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
Order cookNextOrder(OrderList orderList) throws OrderList.NoOrderException, IKitchen.NoChefException
OrderList.NoOrderException
IKitchen.NoChefException
Chef[] getChefs() throws IKitchen.NoChefException
IKitchen.NoChefException
Chef getCurrentChef() throws IKitchen.NoChefException
IKitchen.NoChefException
void addChef(Chef chef)
chef:
- chef to be inserted into the listChef removeChef() throws IKitchen.NoChefException
IKitchen.NoChefException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |