Class Kitchen
java.lang.Object
simu.model.Kitchen
Kitchen Class that receives orders from the Waiter and prepares the meals.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetPrepTime(MenuItem item) getReadyMeal(Customer customer) A method that returns the order to the Waiter to be delivered to the Customer.booleanhasReadyMeals(Customer customer) A method that checks if the Kitchen has orders ready for the Customer.voidreceiveOrder(MenuItem item, Customer customer) A method that receives the order from the Waiter and adds it to the orderMap.
-
Constructor Details
-
Kitchen
public Kitchen()
-
-
Method Details
-
receiveOrder
-
getReadyMeal
-
hasReadyMeals
A method that checks if the Kitchen has orders ready for the Customer.- Parameters:
customer- Customer that the order belongs to.- Returns:
- True if the Kitchen has orders ready for the Customer, false otherwise.
-
getPrepTime
- Parameters:
item- MenuItem that the Kitchen is preparing.- Returns:
- Prep time for the MenuItem in minutes. (To be added to the simulation time)
-