Presentation is loading. Please wait.

Presentation is loading. Please wait.

L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.

Similar presentations


Presentation on theme: "L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I."— Presentation transcript:

1 L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA 95192-0180 http://www.engr.sjsu.edu/~fayad

2 L19-S2 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 2 Lesson 19: More on Class Diagrams

3 L19-S3 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Lesson Objectives 3 Learn how to deal with: î Attributed Association or Association Classes îQualified Associations î Derived Associations î N-ary Associations î Directed Associations Understand: Dependency Relations Refinement or Realization Relations Explore Meta Models

4 L19-S4 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 4 Association Class (1) Class A 1..* role 0..* role Class B Association Class Class A 1..* role 0..* role Class B Association Class role

5 L19-S5 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 5 Association Class (2) Employee 1..* Can-do * employee Ability Employee 1..** Ability CompetenceLevel degree CompetenceLevel degree

6 L19-S6 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 6 Qualified Associations (1) Enterprise name address Employee name initials * * employs Normal Association or Unqualified Qualified Association Enterprise name address Employee name initials *1employs initials qualifier

7 L19-S7 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad  A qualifier is a special attribute that reduces the effective multiplicity of an association.  One-to-many and many-to-many may be qualified.  The qualifier distinguishes among the set of objects at the many end of an association. 7 Qualified Associations (2)

8 L19-S8 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 8 Qualified Associations (3) Directory directoryName File fileName 1Belongs to fileName

9 L19-S9 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 9 Qualified Associations (4) StockExchange Company tickerSymbol * * lists Normal Association or Unqualified Qualified Association StockExchange Company tickerSymbol * lists tickersymbol qualifier

10 L19-S10 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad T/F 1.A role is one end of an association 2.A qualifier in a qualified association is a special relationship between two classes. 3.A qualifier name is an attribute name belongs to the other class at the end of the association. 4.An association class is an association with attributes and operations. 5.The most significant property of aggregation is transitivity, that is if A is part of B and B is part of C, then A is part of C. 10 Discussion Questions

11 L19-S11 More on Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Software Stability Model Stable Analysis Patterns Stable Design Patterns 11 Questions for the Next Lecture


Download ppt "L19-S1 More on Class Diagrams 2003 SJSU -- CmpE Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I."

Similar presentations


Ads by Google