Create a uml statechart diagram - drawing tool to prepare


(1) Developing a UML Statechart

- Read the Background and Requirements sections for detailed information about the system.

- Create a UML Statechart diagram to express the behavior of the model. You must use a drawing tool to prepare your diagram, ensuring that it is clear and legible.

(2) Interpreting and Producing OCL Expressions

- You are provided a UML Class model that describes a certain scenario. Using this model, you must create OCL expressions, and also provide English interpretations for some OCL expressions.

Include all of your answers for both parts of the assignment in a single PDF file named statechart_ocl.pdf on T-Square. Your PDF must include your UML Statechart, your OCL Expressions, and any additional assumptions that you are making.

(1) UML Statechart Scenario: You have been asked to analyze and diagram the behavior of a specific model of home dehumidifiers. The company for which you are working has already produced a UML Statechart for an earlier, much more basic model of their dehumidifier. You have been tasked to model the behavior of the newer, proposed system, which is significantly more advanced. The system behavior is described in the System Requirements Section below, and you must provide a corresponding UML Statechart diagram that reflects these requirements.

System Requirements:

We've developed a very basic dehumidifier model already. This model was designed with a fixed, non-adjustable humidity level, a single fan speed, and an automatic shutoff if the water tank is full. The UML Statechart that we've provided you corresponds to this very basic model. The intent of providing the diagram is to help you get an intuitive feel for the basic dehumidifier functionality. You are welcome to use this diagram as a starting point for your own efforts, simply study it to gather useful ideas, or disregard it and start from scratch.

In contrast, you've been tasked to develop a UML Statechart for a more advanced model, which improves on the basic model by adding an adjustable humidity level, multiple fan speeds, and energy saver settings. The dehumidifier has a fan motor (to create airflow through the unit), and a separate compressor motor (to draw moisture from the air). We've attached a copy of the dehumidifier instructions that describe the control panel and the basic features,

Scenario: You have been asked to analyze the design of a Java Project in order to manage an online shopping cart system. Within the preliminary design that has been created, seven Java classes have been designed: User, Customer, Administrator, Shopping Cart, Orders, Order Details and Shipping Info.

- The shippingRegionId is used to represent certain geographic areas that might have various legal restrictions on certain items

- To simplify the problem, you may assume that there are functions that can be used to compare the date attributes (e.g. dateAdded, dateCreated, dateShipped) and determine if one precedes the other; also, dates can be converted to integers to support incrementing values by hours, days, etc.

Given this design, you must write the following constraints in OCL, in each case making the context clear:

1. If the shipping type for and order is "express", then the order must be shipped within 48 hours of the date it is created.

2. If a customer creates an order that includes more than $100 of merchandise, then they should receive free shipping for all of the included items.

3. Drones (represented by product IDs 50 through 99, inclusive) may not be shipped to Area 51 (represented by shipping region 19).

Also, another analyst generated the OCL expressions below. Provide a clear and concise interpretation for each of these expressions in English.

1. context Orders inv:

orders.dateShipped - orders.dateCreated >= 7 days implies orders.shippingCost = 0

2. context OrderDetails inv:

orderDetails.calcPrice >= orderDetails.quantity * orderDetails.unitPrice

Attachment:- Instructions.rar

Solution Preview :

Prepared by a verified Expert
Software Engineering: Create a uml statechart diagram - drawing tool to prepare
Reference No:- TGS02475666

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)