Package | Description |
---|---|
Item | |
User |
Modifier and Type | Class and Description |
---|---|
class |
Dessert |
class |
Dish
Dish are basic item, they are mixed to create meal but Customers
are able to chose them.
|
class |
FullMeal
Type of full meal containing starter, mainDish and dessert.
|
class |
HalfMeal
Type oh half meal contains MainDish and either starter or dessert.
|
class |
MainDish |
class |
Meal
This Meal class is created by the use of a pattern given in the constructor of
subClasses, this pattern must consist on an array, each case contain an obligatory
typeOfMeal (starter,mainDish...), if the user have the choice between two typeOfMeal
it can be implemented by using a subArray.
|
class |
Starter |
Modifier and Type | Method and Description |
---|---|
Item |
Restaurant.getItemByName(java.lang.String name) |