Interface | Description |
---|---|
VisitablePrice | |
VisitorPrice |
Class | Description |
---|---|
Dessert | |
Dish |
Dish are basic item, they are mixed to create meal but Customers
are able to chose them.
|
FactoryDish |
This factory allow us to create generic type of food as we want to,
it's then easy to add a Drink category if we want to.
|
FactoryMeal |
This Factory allow Restaurant to create generic Meals.
|
FullMeal |
Type of full meal containing starter, mainDish and dessert.
|
HalfMeal |
Type oh half meal contains MainDish and either starter or dessert.
|
Item |
An item is an abstraction of a meal or a dish.
|
MainDish | |
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.
|
MealFactory |
This Factory allow Restaurant to create generic Meals.
|
Starter |