Chapter Two The UML – Unified Modeling Language Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information.

Slides:



Advertisements
Similar presentations
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Advertisements

Modeling Main issues: What do we want to build How do we write this down ©2008 John Wiley & Sons Ltd. vliet.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 9 Slide 1 Appendix 3 Object-Oriented Analysis and Design.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Systems Analysis and Design 8th Edition
UML Class and Sequence Diagrams Violet Slides adapted from Marty Stepp, CSE 403, Winter 2012 CSE 403 Spring 2012 Anton Osobov.
2008/03/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
Department of Computing
Lecturer: Sebastian Coope Ashton Building, Room G.18 COMP 201 web-page: Lecture.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Design Patterns in Java Appendix D UML at a Glance Summary prepared by Kirk Scott 1.
Introduction to UML Visual modeling Models and its importance
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
Lab 6 CPIT 250 System Analysis and Design.
CS 2511 Fall UML Diagram Types  2 Main Types Structure Diagrams ○ Class Diagrams ○ Component Diagrams ○ Object Diagrams Behavior Diagrams ○ Sequence.
SE-565 Software System Requirements More UML Diagrams.
Unified Modeling Language
2005/05/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
Object-Oriented Systems Analysis and Design Using UML
CIT UPES | Sept 2013 | Unified Modeling Language - UML.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
UML Diagrams: Sequence Diagrams The Requirements Model, and The Dynamic Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 8 Slide 1 Object-oriented and Structured System Models.
1 5 Modeling Techniques A line manager states, “I know the Chinese say one picture is worth 1,000 words but these diagrams, there are so many that I’d.
Chapter 5 Models and UML Notation for The Object-Oriented Approach.
Systems Analysis & Design 7 th Edition Chapter 5.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 15 System Modeling with the UML.
Domain Modeling Part2: Domain Class Diagram Chapter 4 pp part 2 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
1 Class Diagrams: Advanced Concepts. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are the most commonly used diagrams.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
Modeling system requirements. Purpose of Models Models help an analyst clarify and refine a design. Models help simplify the complexity of information.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
An Introduction to the Unified Modeling Language
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
Design Jon Walker. More UML ● What is UML again?
CSE 403, Spring 2008, Alverson Using UML to express Software Architecture.
CSE 403, Spring 2007, Alverson Using UML to express Software Architecture.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Lab 5 CPIT 250 System Analysis and Design.
CSE 219 Computer Science III UML. UML Diagrams UML - Unified Modeling Language UML diagrams are used to design object-oriented software systems –represent.
Chapter 21 Design Patterns Reviewed from the New Perspective of Object-Oriented Design Ku-Yaw Chang Assistant Professor, Department.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Object-Oriented Systems Analysis and Design Using UML Systems Analysis and Design,
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
Chapter 3: Introducing the UML
CSCI 3428: Software Engineering Tami Meredith UML Unified Modeling Language.
Chapter Eight Expanding Our Horizons Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering.
Chapter Ten The Bridge Pattern Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh.
Class Diagrams Chapter 3. Classes and Objects Classes are the descriptions –definitions Objects are the things –instances.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
CS 350 – Software Design UML – The Unified Modeling Language – Chapter 2 The Unified Modeling Language is a visual language used to create models of programs.
COP 3330 Notes 4/13. Today’s Topics UML Class Diagrams.
UML Diagrams: Class Diagrams The Static Analysis Model
Object-Oriented Analysis and Design
Analysis and Design with UML: Discovering Classes and Relationships
Unified Modeling Language (UML)
Analysis and Design with UML: Discovering Classes and Relationships
Business System Development
Analysis and Design with UML: Discovering Classes and Relationships
Systems Analysis and Design With UML 2
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Appendix A Object-Oriented Analysis and Design
Analysis and Design with UML: Classes and Relationships
Appendix 3 Object-Oriented Analysis and Design
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
From Class Diagram to Contract Diagram
Presentation transcript:

Chapter Two The UML – Unified Modeling Language Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University

2Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

3Ku-Yaw ChangThe Unified Modeling Language Overview A brief overview of the Unified Modeling Language (UML) What the UML is and why to use it What the UML is and why to use it Essential UML diagrams Essential UML diagrams The Class Diagram The Interaction Diagram

4Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

5Ku-Yaw ChangThe Unified Modeling Language What is the UML? A visual language to create models of programs A drawing notation with semantics A drawing notation with semantics A diagrammatic representation of the programs A diagrammatic representation of the programs Different diagrams for Analysis Analysis Design Design Implementation (dissemination) Implementation (dissemination)

6Ku-Yaw ChangThe Unified Modeling Language UML Diagrams In the analysis phase Use Case Diagrams Use Case Diagrams Entities interacting with the system Function points Activity Diagrams Activity Diagrams Workflow of the problem domain Looking at object interactions Interaction Diagrams Interaction Diagrams How specific objects interact with each other Sequence Diagram is the most popular

7Ku-Yaw ChangThe Unified Modeling Language UML Diagrams In the design phase Class Diagrams Class Diagrams Detail the relationships between the classes Looking at an object’s behaviors State Diagrams State Diagrams Detail the different states an object may be in The transitions between these states In the deployment phase Deployment Diagrams Deployment Diagrams How different modules will be deployed

8Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

9Ku-Yaw ChangThe Unified Modeling Language Why Use the UML? For communication With yourself, team members and customers With yourself, team members and customers For clarity To determine if my understanding of the system is the same as others To determine if my understanding of the system is the same as others For precision A better way of describing object-oriented designs A better way of describing object-oriented designs Force the designer to think through his/her approach Force the designer to think through his/her approach

10Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

11Ku-Yaw ChangThe Unified Modeling Language The Class Diagram The most basic of UML diagram Describe classes Describe classes Show the relationships between them Show the relationships between them When one class is a “kind of” another class is-a relationship is-a relationship When there are associations between two classes One class “contains” another class: the has-a relationship One class “contains” another class: the has-a relationship Composition: the contained item is a part of the containing item Aggregation: a collection of things that can exist on their own One class “uses” another class One class “uses” another class

12Ku-Yaw ChangThe Unified Modeling Language Class Information Each rectangle represents a class The name of the class The name of the class The data members of the class The data members of the class The methods (functions) of the class The methods (functions) of the class Notation for access Public Public Notated with a plus sign (+) Protected Protected Notated with a pound sign (#) Private Private Notated with a minus sign (-)

13Ku-Yaw ChangThe Unified Modeling Language Class Diagram – Its Three Variations Square +display() Square -length : double +display() Whenever we refer to a class name, we will bold it as done here.

14Ku-Yaw ChangThe Unified Modeling Language Class Diagram – is-a relationship Shape is italicized – meaning it is an abstract class ShapeLineSquarePoint

15Ku-Yaw ChangThe Unified Modeling Language Class Diagram – has-a relationship Aggregation ( an unfilled diamond ) Airport has Aircraft Airport has Aircraft Aircraft is not part of Airport Aircraft is not part of Airport AircraftJetHelicopterAirport

16Ku-Yaw ChangThe Unified Modeling Language Class Diagram – has-a relationship Composition ( an filled diamond ) The contained object is a part of the containing object The contained object is a part of the containing object A Car has Tires as parts A Car has Tires as parts Use relationship A dash line with an arrow A dash line with an arrow Also called dependency relationship Also called dependency relationship CarTireGas Station

17Ku-Yaw ChangThe Unified Modeling Language Notes in the UML A note A box containing the message A box containing the message AircraftJetHelicopterAirport open diamonds mean aggregation

18Ku-Yaw ChangThe Unified Modeling Language The Cardinality of the Relationship How many aircraft does an airport have? AircraftJetHelicopterAirport open diamonds mean aggregation *

19Ku-Yaw ChangThe Unified Modeling Language The Cardinality of the Relationship CarTireGas Station Tires are on exactly one car

20Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

21Ku-Yaw ChangThe Unified Modeling Language Interactive Diagram Class diagrams Static relationships Static relationships Interactive diagrams Showing how objects interact with each other Showing how objects interact with each other Sequence diagram Sequence diagram The most common type Reading from top to down Object:Class notation Object:Class notation

22Ku-Yaw ChangThe Unified Modeling Language Sequence Diagram

23Ku-Yaw ChangThe Unified Modeling Language Outline Overview What is the UML? Why use the UML? The class diagram Interaction Diagrams Summary

24Ku-Yaw ChangThe Unified Modeling Language Summary Do not worry so much about creating diagrams the “right” way. If you think something needs to be said, use a Note to say it. If you think something needs to be said, use a Note to say it. If you aren’t sure about an icon or a symbol and you have to look up to find out its meaning, include a note to explain it since others may be unclear about its meaning, too. If you aren’t sure about an icon or a symbol and you have to look up to find out its meaning, include a note to explain it since others may be unclear about its meaning, too. Go for clarity. Go for clarity.

The End