浏览 1589 次
锁定老帖子 主题:Exercise 2
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-11-26
最后修改:2008-11-26
This assignment asks you to model a coffee store application. Description Gourmet Coffee is a store that sells coffee from countries around the globe. It also sells coffee brewing machines and other accessories for coffee consumption. The Gourmet Coffee System maintains a product catalog, processes orders, and tracks the store's sales. The catalog maintains the following information about the store's products:
[--]Coffee
[---]Coffee brewer
[---]Coffee accessory The following tables show some of the products sold by Gourmet Coffee. Figure 1 Coffee Figure 2 Coffee brewers Figure 3 Coffee accessories The Gourmet Coffee System processes orders. An order contains a list of products, their quantities, and the total cost. The following is an example of an order: Figure 4 Order In the Gourmet Coffee System, the user can:
Files Following is a sample executable of the Gourmet Coffee System. gourmet-coffee-sample-executable.jar — Download this file now. It is a sample executable. Tasks These steps will guide you for completing this assignment: First, run the sample executable by issuing the following command at the command prompt: C:\>java -jar gourmet-coffee-sample-executable.jar Then, follow the technique described in page 1.2.5 Modeling Classes to model the Gourmet Coffee System. Identify the following: The classes The association relationships (include direction, multiplicity, and association attribute) The specialization/generalization relationships The attributes of each class The methods of each class Your class diagram should include: The class of the gourmet coffee application The accessor methods The mutator methods if are needed For the collections: The methods to add and access elements The methods to remove elements if are needed The methods that compute other values not included in the attributes. Use Sun's coding conventions when naming classes, methods, and attributes. Use Eclipse, Violet, PowerPoint, or another tool of your choosing to draw a UML class diagram. Save the UML class diagram in a SVG, GIF, or JPG format in a file named uml-gou-cof. 下面是提交的UML图片.. 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |