Database DesignPowerPoint PresentationSlide 3Class Diagrams (1)Class Diagrams (2)Class DiagramSymbols for Class And AssociationClass and Association’s NotationClass Diagram: Example (1)Class Diagram: Example (2)Class Diagram: Example (3)Class Diagram: Example (4)Class Diagram: Example (5)Class Diagram: Example (6)Class Diagram: Example (7)Class Diagram: Example (8)GuidelinesDiscussion QuestionsQuestions for the Next LecturesTasks for Next Lecture2003SJSU -- CmpE L11-S1 Class DiagramsDatabase Design Dr. M.E. Fayad, ProfessorComputer Engineering Department, Room #283I College of EngineeringSan José State UniversityOne Washington SquareSan José, CA 95192-0180 http://www.engr.sjsu.edu/~fayad2003SJSU – CmpE --- M.E. Fayad L11-S2 Class Diagrams2Lesson 11:Samples of Class Diagrams2003SJSU – CmpE --- M.E. Fayad L11-S3 Class Diagrams Lesson ObjectivesObjectives3 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 diagram2003SJSU – CmpE --- M.E. Fayad L11-S4 Class DiagramsThe most common diagram found in modeling object-oriented systemModel the static design view of a systemThe foundation for–component diagrams–deployment diagrams4Class Diagrams (1)2003SJSU – CmpE --- M.E. Fayad L11-S5 Class DiagramsClass diagrams commonly contain the following–classes–interfaces–collaborations–dependency, generalization, and association relationship–notes and constraints5Class Diagrams (2)2003SJSU – CmpE --- M.E. Fayad L11-S6 Class DiagramsCaptures the vocabulary of a systemBuilt and refined throughout developmentPurpose–To model the vocabulary of a system–To model simple collaborations–To model a logical database scheme6Class Diagram2003SJSU – CmpE --- M.E. Fayad L11-S7 Class Diagrams11Symbols for Class And Association2003SJSU – CmpE --- M.E. Fayad L11-S8 Class Diagrams8Class and Association’s Notation2003SJSU – CmpE --- M.E. Fayad L11-S9 Class Diagrams9Class Diagram: Example (1)2003SJSU – CmpE --- M.E. Fayad L11-S10 Class Diagrams10Class Diagram: Example (2)2003SJSU – CmpE --- M.E. Fayad L11-S11 Class DiagramsClass Diagram: Example (3)2003SJSU – CmpE --- M.E. Fayad L11-S12 Class Diagrams12Class Diagram: Example (4)2003SJSU – CmpE --- M.E. Fayad L11-S13 Class Diagrams13Class Diagram: Example (5)2003SJSU – CmpE --- M.E. Fayad L11-S14 Class Diagrams14Class Diagram: Example (6)2003SJSU – CmpE --- M.E. Fayad L11-S15 Class Diagrams15Class Diagram: Example (7)2003SJSU – CmpE --- M.E. Fayad L11-S16 Class Diagrams16Class Diagram: Example (8)2003SJSU – CmpE --- M.E. Fayad L11-S17 Class DiagramsA 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 semantics17Guidelines2003SJSU – CmpE --- M.E. Fayad L11-S18 Class DiagramsT/F1. 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 0..1 0..1 BA 0..1 1..1 BA 1..1 1..1 B4. Multiplicity is the number of associations of instances of each class.5. Class diagrams model the dynamic design view of a system.18 Discussion Questions2003SJSU – CmpE --- M.E. Fayad L11-S19 Class DiagramsMore on Class Diagrams Software Stability–Enduring Business Concepts (EBTs)–Business Objects (BOs)–Industrial Objects (IOs)19Questions for the Next Lectures2003SJSU – CmpE --- M.E. Fayad L11-S20 Class DiagramsTask 1: Read Software Stability columns Task 2: Design Sessions20 Tasks for Next
View Full Document