Introduction to UML Introduction to UML Shiyuan Jin September,23,2002

Slides:



Advertisements
Similar presentations
2008/03/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
Advertisements

Introduction to UML. Acknowledgements Slides material are taken from different sources including: Slides material are taken from different sources including:
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Essentials of interaction diagrams Lecture Outline Collaborations Interaction on collaboration diagrams Sequence diagrams Messages from an object.
The Unified Modeling Language
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
© Copyright Eliyahu Brutman Programming Techniques Course.
Introduction to UML Prashanth Aedunuthula Fall, 2004.
Introduction to UML Shiyuan Jin Fall, 2006.
Chapter 7: The Object-Oriented Approach to Requirements
CS 360 Lecture 6.  A model is a simplification of reality  We build models to better understand the system being developed.  We build models of complex.
Lecture 7 Object Oriented Design. Outline  What is UML and why we use UML?  How to use UML diagrams to design software system?  What UML Modeling tools.
EEL5881 Software Engineering I UML Lecture Yi Luo.
UML Use Case Diagramming Guidelines. What is UML? The Unified Modeling Language (UML) is a standard language for specifying, visualizing, constructing,
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Class diagram Used for describing structure and behaviour in the use cases Provide a conceptual model of the system in terms of entities and their relationships.
An Introduction to the Unified Modeling Language
Introduction To OOP 1.0 Fundamentals Of Java Programming Language 2.0 Exception Handling 3.0 Classes, Inheritance And Polymorphism © 2011 | PN AZRINA.
The Unified Modeling Language Part II Omar Meqdadi SE 2730 Lecture 9 Department of Computer Science and Software Engineering University of Wisconsin-Platteville.
1 System Analysis and Design Using UML INSTRUCTOR: Jesmin Akhter Lecturer, IIT, JU.
Course Instructor: Kashif Ihsan 1. Chapter # 3 2.
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
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?
Design Model Lecture p6 T120B pavasario sem.
Introduction to UML CS A470. What is UML? Unified Modeling Language –OMG Standard, Object Management Group –Based on work from Booch, Rumbaugh, Jacobson.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
Chapter 3: Introducing the UML
UML Course Instructor: Rizwana Noor. Overview  Modeling  What is UML?  Why UML?  UML Diagrams  Use Case  Components  Relationships  Notations.
 What to do if you want to build a new house? › Buy a bunch of wood and nails and start immediately. › Or, put some blueprints to follow, and plan of.
Introduction to UML Created By: Ajay Bahoriya. Acknowledgements Slides material are taken from different sources including: Slides material are taken.
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
Lecture 13. Unified Modeling Language (UML) The first applications you wrote in CS201 were easy to think out and code with no intermediate steps. Lab.
SWE 214 (071) Introduction to UML Slide 1 Introduction to UML.
System modeling and the Unified Modeling Language (UML) CS
UML CSE 470 : Software Engineering. Unified Modeling Language UML is a modeling language to express and design documents, software –Particularly useful.
Introduction to UML Mohammad Zubair Ahmad Summer 2007.
 Class and Diagram  Representation of Class Name Attributes Operations  Visibility of Attributes and Operations.
Introduction to UML.
UML(Unified Modeling Language)
UML Diagrams By Daniel Damaris Novarianto S..
UML-Class Diagrams. UML-Class Diagrams Order placement problem A Company has two types of customers, corporate customers and personal customers. All.
Introduction to UML Majid Ali Khan Spring 2005 Introduce myself.
Evolution of UML.
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Object-Oriented Analysis and Design
Object-Oriented Techniques
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Unified Modeling Language
Introduction to Unified Modeling Language (UML)
Introduction to UML Shiyuan Jin Spring, 2006.
Introduction to Unified Modeling Language (UML)
OO Domain Modeling With UML Class Diagrams and CRC Cards
UML Diagrams Jung Woo.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
UML PPt by: Hong Qing Yu.
Software Architecture & Design Pattern
OO Domain Modeling With UML Class Diagrams and CRC Cards
Chapter 9 Use Cases.
Interaction diagrams.
Introduction to UML.
CIS 375 Bruce R. Maxim UM-Dearborn
Software Design Lecture : 15.
Copyright 2007 Oxford Consulting, Ltd
Shiyuan Jin Fall, 2003 September,16,2003
Class Diagrams Class diagram is basically a graphical representation of the static view of the system and represents different aspects of the application.
CSE470 Software Engineering UML Lecture.  UML resource page
CIS 375 Bruce R. Maxim UM-Dearborn
Chapter 11: Class Diagram
Presentation transcript:

Introduction to UML Introduction to UML Shiyuan Jin September,23,2002

What is UML? Simplifies the complex process of software design The Unified Modeling Language (UML) is a industry-standard  language for specifying, visualizing, constructing, and documenting the artifacts of software systems, as well as for business modeling. The UML uses mostly graphical notations to express the design of software projects.  Simplifies the complex process of software design

Types of UML Diagrams Use Case Diagram: Class Diagram: Displays the relationship among actors and use cases.  Class Diagram: Describe the types of objects in the system and various kinds of static relationship that exist among them. Sequence Diagram: Displays the time sequence of the objects participating in the interaction.

Types of UML Diagrams Collaboration Diagram Displays an interaction organized around the objects and their links to one another. State Diagram Displays the sequences of states that an object of an interaction goes through during its life in response to received stimuli, together with its responses and actions.

Use Case Diagrams Library System Borrow Employee Client Order Title Fine Remittance Supervisor  A generalized description of how a system will be used.   Provides an overview of the intended functionality of the system

Two main components Actors: A role that a user plays with respect to the system,including human users and other systems. Use case: A set of scenarios that describing an interaction between a user and a system. The use cases are enclosed by a rectangle denoting the system boundary.

Class Diagrams * * * * Multiplicity: mandatory 1 Association Name Order Multiplicity: mandatory Attributes -dateReceived -isPrepaid * Customer 1 -number :String -name -price : Money -address Association Operations +dispatch() +creditRating() : String() +close() 1 {if Order.customer.creditRating is Generalization "poor", then Order.isPrepaid must be true } Corporate Customer Personal Customer Constraint (inside braces{}} -contactName -creditCard# -creditRating Multiplicity: Many value -creditLimit +remind() +billForMonth(Integer) Multiplicity: optional * 0..1 Employee * OrderLine -quantity: Integer * 1 Product -price: Money -isSatisfied: Boolean

OO Relationships: Generalization Supertype Example: Customer Corporate customer Personal Customer Subtype1 Subtype2 UML class diagram: generalization Generalization expresses a relationship among related classes. It is a class that includes its subclasses.

OO Relationships: Composition Composition: expresses a relationship among instances of related classes. It is a specific kind of Whole-Part relationship. It expresses a relationship where an instance of the Whole-class has the responsibility to create and initialize instances of each Part-class. It may also be used to express a relationship where instances of the Part-classes have privileged access or visibility to certain attributes and/or behaviors defined by the Whole-class. Composition should also be used to express relationship where instances of the Whole-class have exclusive access to and control of instances of the Part-classes. Composition should be used to express a relationship where the behavior of Part instances is undefined without being related to an instance of the Whole. And, conversely, the behavior of the Whole is ill-defined or incomplete if one or more of the Part instances are undefined. Whole Class Class W Class P1 Class P2 Part Classes Example Automobile Engine Transmission

OO Relationships: Aggregation Container Class Aggregation: expresses a relationship among instances of related classes. It is a specific kind of Container-Containee relationship. It expresses a relationship where an instance of the Container-class has the responsibility to hold and maintain instances of each Containee-class that have been created outside the auspices of the Container-class. Aggregation should be used to express a more informal relationship than composition expresses. That is, it is an appropriate relationship where the Container and its Containees can be manipulated independently. Aggregation is appropriate when Container and Containees have no special access privileges to each other. Class C AGGREGATION Class E1 Class E2 Containee Classes Example Bag Apples Milk

Interaction Diagrams:Sequence diagrams Object Message Sequence diagrams demonstrate the behavior of objects in a use case by describing the objects and the messages they pass. The horizontal dimension shows the objects participating in the interaction. The vertical arrangement of messages indicates their order. The labels may contain the seq. # to indicate concurrency.

Interaction Diagrams: Collaboration diagrams start 6: remove reservation 3 : [not available] reserve title User Reservations 5: title available 6 : borrow title 1: look up 2: title data 4 : title returned Catalog 5 : hold title Shows the relationship between objects and the order of messages passed between them.  The objects are listed as rectangles and arrows indicate the messages being passed between them. The numbers next to the messages are called sequence numbers. They show the sequence of the messages as they are passed between the objects. 

CRC Card Class Responsibility Collaborator Class Reservations Collaborators Catalog User session Responsibility Keep list of reserved titles Handle reservation

State Diagrams Shows the sequences of states an object goes through during it's life cycle in response to stimuli, together with its responses and actions.  Borrow/ N:=n +1 Is-member Cleaning-up Stop[N=0] Start/ N:=0 Return/ N:=n-1

UML Modeling Tools Rational Rose UML Stadio ArgoUML Others