Give two examples of aggregation generalization and


Book : System Analysis & Design : A n O bject -O riented A pproach with UML [Fifh Edition] By Alan Dennis and Barbara Haley Wixom and David Tegarden.

Chapter 5 : Structural Modeling

Chapter 5 (pg. 198 - 201)
* Questions: 3, 4, 7, 9, 10, 11
* Exercises: A, B
* Minicases: 1

Questions

3. What is an association class?

4. Contrast the following sets of terms: object, class, method, attribute, superclass, subclass, concrete class, abstract class.

7. Draw the relationships that are described by the following business rules. Include the multiplicities for each relationship.

A patient must be assigned to only one doctor, and a doctor can have one or many patients. An employee has one phone extension, and a unique phone extension is assigned to an employee. A movie theater shows at least one movie, and a movie can be shown at up to four other movie theaters around town. A movie either has one star, two costars, or more than ten people starring together. A star must be in at least one movie.

9. For what is an association class used in a class diagram? Give an example of an association class that may be found in a class diagram that captures students and the courses that they have taken.

10. Give two examples of aggregation, generalization, and association relationships. How is each type of association depicted on a class diagram?

11. Identify the following operations as constructor, query, or update. Which operations would not need to be shown in the class rectangle?

Calculate employee raise (raise percent)
Calculate sick days ()
Increment number of employee vacation days ()
Locate employee name ()
Place request for vacation (vacation day)
Find employee address ()
Insert employee ()
Change employee address ()
Insert spouse ()

EXERCISES

A. Create a CRC card for each of the following classes:

Movie (title, producer, length, director, genre)

Ticket (price, adult or child, showtime, movie)

Patron (name, adult or child, age)

B. Create a class diagram based on the CRC cards you created for exercise A.

MiniCase

1. West Star Marinas is a chain of twelve marinas that offer lakeside service to boaters; service and repair of boats, motors, and marine equipment; and sales of boats, motors, and other marine accessories. Te sys tems development project team at West Star Marinas has been hard at work on a project that eventually will link all the marina’s facilities into one unifed, networked system.

Te project team has developed a use-case diagram of the current system. Tis model has been carefully checked. Last week, the team invited a number of system users to role-play the various use cases, and the use cases were refned to the users’ satisfaction. Right now, the project manager feels confdent that the as-is system has been adequately represented in the use-case diagram.

Te director of operations for West Star is the sponsor of this project. He sat in on the role-playing of the use cases and was very pleased by the thorough job the team had done in developing the model. He made it clear to you, the project manager, that he was anxious to see your team begin work on the use cases for the to-be system. He was a little skeptical that it was necessary for your team to spend any time modeling the current system in the frst place but grudgingly admitted that the team really seemed to understand the business af er going through that work.

Te methodology you are following, however, specifes that the team should now turn its attention to developing the structural models for the as-is system. When you stated this to the project sponsor, he seemed confused and a little irritated. “You are going to spend even more time looking at the current system? I thought you were done with that! Why is this necessary? I want to see some progress on the way things will work in the future!”

What is your response to the director of operations? Why do we perform structural modeling? Is there any beneft to developing a structural model of the current system at all? How do the use cases and use-case diagram help us develop the structural model?

Solution Preview :

Prepared by a verified Expert
Management Information Sys: Give two examples of aggregation generalization and
Reference No:- TGS02653161

Now Priced at $30 (50% Discount)

Recommended (99%)

Rated (4.3/5)