Your task will be the following:
- Modify the Factories to be Singletons.
- Modify the Pizza class and the CookingRobots so, that Dough, Sauce and Topping are objects themselves.
- They should have a List of Strings representing the ingredients.
- The buildDough, buildSauce and buildTopping methods should really create those instances of Dough, Sauce and Topping.
- These methods should also take some parameter - preferably a String that is tokenized into a List of Strings, or a List of Strings - that defines some aspect of the built object.
- They should have a List of Strings representing the ingredients.
- Produce several robots and let the Cooks make pizzas using them.
- For extra credit: The robots should be produced and run by Threads.
This assignment is due noon next wednesday, 11th March. Please include the following string in the subject of your e-mail: "[Patterns Assignment]"!
Nincsenek megjegyzések:
Megjegyzés küldése