Presentation is loading. Please wait.

Presentation is loading. Please wait.

L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San.

Similar presentations


Presentation on theme: "L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San."— Presentation transcript:

1 L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns 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 L5-S2 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 2 Lesson 05: Samples of Class Diagrams

3 L5-S3 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Lesson Objectives 3 Understand How to put together a class diagram Explore sample of classes and relationships Explore classes and association’s notation Understand the guidelines for putting together a class diagram

4 L5-S4 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad The most common diagram found in modeling object-oriented system Model the static design view of a system The foundation for –component diagrams –deployment diagrams 4 Class Diagrams (1)

5 L5-S5 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Class diagrams commonly contain the following –classes –interfaces –collaborations –dependency, generalization, and association relationship –notes and constraints 5 Class Diagrams (2)

6 L5-S6 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Captures the vocabulary of a system Built and refined throughout development Purpose –To model the vocabulary of a system –To model simple collaborations –To model a logical database scheme 6 Class Diagram

7 L5-S7 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 11 Symbols for Class And Association

8 L5-S8 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 8 Class and Association’s Notation

9 L5-S9 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 9 Class Diagram: Example (1)

10 L5-S10 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 10 Class Diagram: Example (2)

11 L5-S11 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad Class Diagram: Example (3)

12 L5-S12 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 12 Class Diagram: Example (4)

13 L5-S13 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 13 Class Diagram: Example (5)

14 L5-S14 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 14 Class Diagram: Example (6)

15 L5-S15 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 15 Class Diagram: Example (7)

16 L5-S16 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad 16 Class Diagram: Example (8)

17 L5-S17 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad A well-structured class diagram –is focused on communicating one aspect of a system’s static design view –contains only elements that are essential to understanding that aspect –provides detail consistent with its level of abstraction –is not so minimalist that it misinforms the reader about important semantics 17 Guidelines

18 L5-S18 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad T/F 1. Multiplicity defines how many instances of one class can be associated with the instance of the other class. 2. Bi-directional - The fact that associations are read in both directions 3. Multiplicity is the number of associations of instances of each class. 4. Class diagrams model the dynamic design view of a system. 18 Discussion Questions

19 L5-S19 Class Diagrams 2003 SJSU – CmpE --- M.E. Fayad More on Class Diagrams Software Stability –Enduring Business Concepts (EBTs) –Business Objects (BOs) –Industrial Objects (IOs) 19 Questions for the Next Lectures


Download ppt "L5-S1 Class Diagrams 2003 SJSU -- CmpE Software Patterns Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San."

Similar presentations


Ads by Google