Page 1  Copyright © 1997 by Rational Software Corporation Class Diagrams A class diagram shows the existence of classes and their relationships in the.

Slides:



Advertisements
Similar presentations
Analysis and Design with UML
Advertisements

UML Unified MODELING Language
Analysis and Design with UML
Visual Modeling & Unified Modeling Language (UML)
UML Unified Modeling Language Basic Concepts. UML What is the UML*? UML stands for Unified Modeling Language The UML combines the best of the best from:
1 CS 426 Senior Projects Chapter 9: Relationships Chapter 10: Inheritance and Polymorphism [Arlow and Neustadt, 2005] February 12, 2009.
UML Overview Unified Modeling Language Basic Concepts.
Software Engineering Recitation 3 Suhit Gupta. Review CVS problems XML problems – XML/XSD/DTD/SCHEMAS.
1 CS 426 Senior Projects Chapter 9: Relationships Chapter 10: Inheritance and Polymorphism [Arlow and Neustadt, 2002] February 27, 2007.
Page 1 R Copyright © 1997 by Rational Software Corporation Analysis and Design with UML.
PRJ566: PROJECT PLANNING AND MANAGEMENT Class Diagrams.
Unified Modeling Language
Relationships. In the Interaction diagrams, we began to look at how classes communicate with one another. Now, we'll focus on the relationships between.
1 CSc 131 Computer Software Engineering Fall 2012 Lecture # 7 Object-Oriented Design & UML Class Models.
Page 1 What is the UML? UML stands for Unified Modeling Language The UML combines the best of the best from – Data Modeling concepts (Entity Relationship.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Solid Palette Gradient Palette I Gradient Palette II APPLYING THESE COLORS Click on the desired color Click on the paintbrush tool located.
Page 1  Copyright © 1997 by Rational Software Corporation Computer System Business Process Order Item Ship via “ Modeling captures essential parts of.
Page 1 R Copyright © 1998 by Rational Software Corporation Visual Modeling and the UML.
Lab 04.
CSIS3600 Systems Analysis and Design Class Identification and Class Diagrams.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 02. Objects,
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 03. Classes,
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
SOFTWARE REQUIREMENTS ANALYSIS (SWRA) Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
UML Diagrams: The Static Model Class Diagrams. The Static Model Define the static structure of the logical model Represent classes, class hierarchies.
Object Oriented Analysis & Design Using UML (CS-512) M-Tech CSE (Ist & 3rd Sem) Part Time Mr. Pawan Luthra Assistant Professor (CSE Deptt.) SBSSTC, Ferozepur.
COP43311 Copyright © 1997 by Rational Software Corporation Unified Modeling Language (UML) Based on slides and papers from Rational’s UML website
Analysis & Design with UML
What is a Structural Model?
1 The Unified Modeling Language. 2 The Unified Modeling Language (UML) is a standard language for writing software blueprints. The UML may be used to.
Design Jon Walker. More UML ● What is UML again?
Class Diagram. Classes Software Design (UML) Class Name attributes operations A class is a description of a set of objects that share the same attributes,
OOA&D - 1© Minder Chen, Models, Views, and Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams.
Concordia TAV 2002 Comp5421_61 Comp5421 Object Oriented Programming Design Notation Lecture 6 Tianxiang Shen Summer 2002 Department of Computer Science.
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
Page 1 R Copyright © 1997 by Rational Software Corporation Analysis and Design with UML Presentation was downloaded (and is available for free) from Rational.
OOAD Using the UML - Introduction to Object Orientation, v 4.2 Copyright  Rational Software, all rights reserved 1 Object Oriented Analysis.
Domain Classes – Part 1.  Analyze Requirements as per Use Case Model  Domain Model (Conceptual Class Diagram)  Interaction (Sequence) Diagrams  System.
Analysis and Design with UML. Agenda Benefits of Visual Modeling History of the UML Visual Modeling with UML The Rational Iterative Development Process.
Class Diagram Chapter 21 Applying UML and Patterns Craig Larman.
Page 1  Copyright © 1997 by Rational Software Corporation Putting the UML to Work The ESU University wants to computerize their registration system –
IST 210 The Rational Unified Process (RUP) and Unified Modeling Language (UML) Todd Bacastow IST 210: Organization of Data.
Visual Modeling and the UML. Object Oriented Analysis and Design.
Object Oriented Analysis and Design Using the UML
Class Diagram Lecture # 1. Class diagram A Class Diagram is a diagram describing the structure of a system shows the system's classes Attributes operations.
1 IS 0020 Program Design and Software Tools Unified Modeling Language Lecture 13 April 13, 2005.
1 IS 0020 Program Design and Software Tools Unified Modeling Language Lecture 13 November 30, 2004.
1 Chapter 13: Class Diagram Chapter 19 in Applying UML and Patterns Book.
Analysis and Design with UML  Overview - Object-Oriented Modeling  Benefits of Visual Modeling  History of the UML  Visual Modeling with UML  The.
Analysis and Design with UML
UML Diagrams: Class Diagrams The Static Analysis Model
Object-Oriented Modeling
Visual Modeling and the UML
UML SEQUENCE AND CLASS DIAGRAMS
UML Diagrams: The Static Model Class Diagrams
Creating Class Diagrams based on Use Case Diagrams
Object Oriented Analysis and Design
ניתוח ועיצוב אובייקטים תהליכים ממשק משתמש התאמת המודל לסביבת הפיתוח.
The Unified Modeling Language
The Development Process
Object Oriented Analysis and Design Using the UML
Chapter 20 Object-Oriented Analysis and Design
Understand and Use Object Oriented Methods
Chapter 11: Class Diagram
Analysis and Design with UML
Object Oriented System Design Class Diagrams
Chapter 11: Class Diagram
Presentation transcript:

Page 1  Copyright © 1997 by Rational Software Corporation Class Diagrams A class diagram shows the existence of classes and their relationships in the logical view of a system UML modeling elements in class diagrams – Classes and their structure and behavior – Association, aggregation, dependency, and inheritance relationships – Multiplicity and navigation indicators – Role names

Page 2  Copyright © 1997 by Rational Software Corporation Classes A class is a collection of objects with common structure, common behavior, common relationships and common semantics Classes are found by examining the objects in sequence and collaboration diagram A class is drawn as a rectangle with three compartments Classes should be named using the vocabulary of the domain – Naming standards should be created – e.g., all classes are singular nouns starting with a capital letter

Page 3  Copyright © 1997 by Rational Software Corporation Classes RegistrationForm RegistrationManager Course Student CourseOffering Professor ScheduleAlgorithm

Page 4  Copyright © 1997 by Rational Software Corporation Operations The behavior of a class is represented by its operations Operations may be found by examining interaction diagrams registration form registration manager 3: add course(joe, math 01) RegistrationManager addCourse(Student,Course)

Page 5  Copyright © 1997 by Rational Software Corporation Attributes The structure of a class is represented by its attributes Attributes may be found by examining class definitions, the problem requirements, and by applying domain knowledge Each course offering has a number, location and time CourseOffering number location time

Page 6  Copyright © 1997 by Rational Software Corporation Classes RegistrationForm RegistrationManager addStudent(Course, StudentInfo) Course name numberCredits open() addStudent(StudentInfo) Student name major CourseOffering location open() addStudent(StudentInfo) Professor name tenureStatus ScheduleAlgorithm

Page 7  Copyright © 1997 by Rational Software Corporation Relationships Relationships provide a pathway for communication between objects Sequence and/or collaboration diagrams are examined to determine what links between objects need to exist to accomplish the behavior -- if two objects need to “talk” there must be a link between them Three types of relationships are: – Association – Aggregation – Dependency

Page 8  Copyright © 1997 by Rational Software Corporation Relationships An association is a bi-directional connection between classes – An association is shown as a line connecting the related classes An aggregation is a stronger form of relationship where the relationship is between a whole and its parts – An aggregation is shown as a line connecting the related classes with a diamond next to the class representing the whole A dependency relationship is a weaker form of relationship showing a relationship between a client and a supplier where the client does not have semantic knowledge of the supplier A dependency is shown as a dashed line pointing from the client to the supplier

Page 9  Copyright © 1997 by Rational Software Corporation Registration Manager Math 101: Course 3: add student(joe) RegistrationManager Course Finding Relationships Relationships are discovered by examining interaction diagrams – If two objects must “talk” there must be a pathway for communication

Page 10  Copyright © 1997 by Rational Software Corporation Relationships RegistrationForm RegistrationManager Course Student CourseOffering Professor addStudent(Course, StudentInfo) name numberCredits open() addStudent(StudentInfo) name major location open() addStudent(StudentInfo) name tenureStatus ScheduleAlgorithm

Page 11  Copyright © 1997 by Rational Software Corporation Multiplicity and Navigation Multiplicity defines how many objects participate in a relationships – Multiplicity is the number of instances of one class related to ONE instance of the other class – For each association and aggregation, there are two multiplicity decisions to make: one for each end of the relationship Although associations and aggregations are bi-directional by default, it is often desirable to restrict navigation to one direction If navigation is restricted, an arrowhead is added to indicate the direction of the navigation

Page 12  Copyright © 1997 by Rational Software Corporation Multiplicity and Navigation RegistrationForm RegistrationManager Course Student CourseOffering Professor addStudent(Course, StudentInfo) name numberCredits open() addStudent(StudentInfo) major location open() addStudent(StudentInfo) tenureStatus ScheduleAlgorithm 1 0..* *

Page 13  Copyright © 1997 by Rational Software Corporation Inheritance Inheritance is a relationships between a superclass and its subclasses There are two ways to find inheritance: – Generalization – Specialization Common attributes, operations, and/or relationships are shown at the highest applicable level in the hierarchy

Page 14  Copyright © 1997 by Rational Software Corporation Inheritance RegistrationForm RegistrationManager Course Student CourseOffering Professor addStudent(Course, StudentInfo) name numberCredits open() addStudent(StudentInfo) major location open() addStudent(StudentInfo) tenureStatus ScheduleAlgorithm name RegistrationUser