6.9 Exercises


1:

What are the three primary activities in the ROPES nanocycle?

2:

Summarize, in one sentence, the intent of the nanocycle.

3:

What is a domain and how is it represented in the UML?

4:

Identify a possible set of domains for a microwave oven.

5:

Identify the five object-identification strategies you are most likely to use.

6:

Use these five strategies to identify the objects in a Cook Food use case for a microwave oven. Draw at least one object diagram for these objects with information flows showing, at a high level, the information sources and sinks. A simple problem statement might look like this:

The NukeOMatic microwave oven allows the user to cook food by setting a single time-to-completion with a power amplitude (settings from 1 to 10, equally dividing power output from 0 to 700 watts). In addition, the microwave can be programmed to remember "recipes," which consist of sequences of (power value, time value) pairs, with programmable pauses (including optional stops for user to do something and hit the Continue button to move on to the next phase. During cooking, an internal plate rotates at the rate of 3 rpm. At the end of the cooking cycle (or the recipe sequence) an alarm may optionally sound.

7:

Are there any transactional or persistent objects identified?

8:

Construct some scenarios of the Cook Food use case showing how your collaboration of objects works.

9:

What are your favorite association identification strategies? Identify the classes of the objects on the diagrams and redraw your class diagram showing associations, attributes, and operations.

10:

What is an attribute?

11:

How does one identify attributes?

12:

What is meant by diagram mission? Give some examples for class diagrams.

13:

When is it appropriate to use associative classes? Give an example of an associative class not mentioned in this chapter.

14:

What are the two important aspects of generalization?

15:

How does one decide where in a generalization taxonomy to place attributes and operations?

16:

Explain the Open-Closed Principle (OCP).

17:

Draw a generalization taxonomy for the following shapes: shape, square, and rectangle. If we follow the rule that a subclass can only expand constraints, which class is at the top of the generalization taxonomy?

18:

What are the two things that can be done to make a subclass different from its base class?




Real Time UML. Advances in The UML for Real-Time Systems
Real Time UML: Advances in the UML for Real-Time Systems (3rd Edition)
ISBN: 0321160762
EAN: 2147483647
Year: 2003
Pages: 127

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net