Presentation is loading. Please wait.

Presentation is loading. Please wait.

Component-Based & Software Reuse

Similar presentations


Presentation on theme: "Component-Based & Software Reuse"— Presentation transcript:

1 Component-Based & Software Reuse
Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of Engineering San José State University One Washington Square San José, CA 2003 SJSU -- CmpE

2 Samples of Class Diagrams
Lesson 03-3: Samples of Class Diagrams 2 2003 SJSU – CmpE --- M.E. Fayad

3 3 Lesson Objectives 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 3 2003 SJSU – CmpE --- M.E. Fayad

4 Class Diagrams (1) 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 2003 SJSU – CmpE --- M.E. Fayad

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

6 6 Class Diagram 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 2003 SJSU – CmpE --- M.E. Fayad

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

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

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

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

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

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

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

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

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

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

17 17 Guidelines 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 2003 SJSU – CmpE --- M.E. Fayad

18 18 Discussion Questions A 0..1 0..1 B A 0..1 1..1 B A 1..1 1..1 B
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. For one to one there are three possibilities: A B A B A B 4. Multiplicity is the number of associations of instances of each class. 5. Class diagrams model the dynamic design view of a system. 18 2003 SJSU – CmpE --- M.E. Fayad

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


Download ppt "Component-Based & Software Reuse"

Similar presentations


Ads by Google