Introduction Figure 1:
Famous Belgian Easter Chocolate Egg. This assignment considers the domain of a Belgian Chocolatier that prepares typical Belgian Easter eggs. These eggs can be of various sizes, hollow or stuffed, and smaller eggs can be put into bigger (hollow) ones. Larger hollow eggs can contain only smaller ones, i.e. there is only one level of containment, as shown in Figure 1. These eggs can be made of various types of chocolate with a wide range of ingredients to be stuffed with (e.g., fruit, mint, praliné) to create different types of fillings. The filling of a Belgian chocolate egg usually determines the visible look of an egg.
Clients (you) are able to order some chocolate eggs (using a Command
Line Interface - CLI - ) that can be packaged in various forms. The packaging and content depend on the preferences of the clients (i.e. boxes
or large chocolate eggs).
The code base you receive already contains some design patterns from the famous “Gang of Four” [Gamma et al., 1995]
(GoF) that you will need to identify in a first task. In your second task, you will retro-engineer the overall design in the form of
SENG301 Assignment 3 - Design Patterns
1 / 5
2. YOUR TASKS
a UML Class Diagram [Object Management Group, 2017, chap.11]. Your third task is to implement new features that should
be made possible by using other design patterns you learned about during SENG301 lectures.
Get Free Quote!
269 Experts Online