Question
32) Draw a UML class diagram for each of the following relations between Product and Category. Explain your choice. a) The operator can change the
32) Draw a UML class diagram for each of the following relations between Product and Category. Explain your choice.
a) The operator can change the category of a product, but only the manager can create new categories (everything done via the systems user interface).
b) There is a fixed set of 4 categories, which will not be changed once the system is ready, and there are operations and attributes specific to each category.
c) It is necessary to know the product category only to be displayed together with the product data, no processing will be made based on the products category.
d) There is a fixed set of 100 categories. For each category, the users can define what is the shipping mode. There are 3 different shipping modes (UPS, USPS, and FedEx). The system connects to the companies web services to calculate the fee and each company has each own protocol for these connections. Your client told that they may include other shipping modes in the future.
e) The system starts with a set of categories, but users can create or manage the categories. Users can also define the attributes they want to register for products of each category. Example: products of the Tires category have dimensions, weight, rim size, section width, and aspect ratio; for Smartphones, the products have dimensions, weight, battery type, and operating system; for Light Bulb, products have color temperature, shape, light source type, and wattage. None of the options fit perfectly for this case. You can combine ideas and propose an alternative model.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started