UML an overview Compiled by:Dr. Avi Rosenfeld Based on:

Slides:



Advertisements
Similar presentations
UML an overview.
Advertisements

Behavioral Modeling: State Diagrams CIS 4800 Kannan Mohan Department of CIS Zicklin School of Business, Baruch College Copyright © 2009 John Wiley & Sons,
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
UML (Sequence Diagrams, Collaboration and State Chart Diagrams) Presentation By - SANDEEP REDDY CHEEDEPUDI (Student No: ) - VISHNU CHANDRADAS (Student.
Chapter 6: Behavioral Modeling
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Object-Oriented Analysis and Design
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
Slide 1 Systems Analysis & Design CS183 Spring Semester Dr. Jonathan Y. Clark Course Website:
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 The.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
© Copyright Eliyahu Brutman Programming Techniques Course.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
Slide 1 Chapter 8 Behavioral Modeling. Slide 2 Key Ideas Behavioral models describe the internal dynamic aspects of an information system that supports.
UML. Overview of UML Diagrams Structural : element of spec. irrespective of time Class Component Deployment Object Composite structure Package Behavioral.
Unified Modeling Language
 2008 Pearson Education, Inc. All rights reserved (Optional) Software Engineering Case Study: Identifying the Classes in the ATM Requirements.
Class, Sequence and UML Model.  Has actors and use cases.
Chapter 1: Introduction to Systems Analysis and Design
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
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.
Slide 1 UML Review Chapter 2: Introduction to Object-Oriented Systems Analysis and Design with the Unified Modeling Language, Version 2.0 Alan Dennis,
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Structural Modeling. Objectives O Understand the rules and style guidelines for creating CRC cards, class diagrams, and object diagrams. O Understand.
Unit 1 INTRODUCTION TO MODELING AND CLASS MODEL Ref : L7-UML.PDF.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
ניתוח מערכות מידע 1 Unified Modeling Language (UML) § § The Unified Modeling Language (UML) is the industry-standard language for: Specifying, Visualizing,
By: DiGitAll UML an overview. Topics covered in this Session 1. Introducing UML. 2. What constitutes the UML. 3. Concepts of UML.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Discovering object interaction. Use case realisation The USE CASE diagram presents an outside view of the system. The functionality of the use case is.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Behavioral Modeling Chapter 8
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
Component, Deployment and Package Diagrams CSIS3600.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 15 The Unified Modeling Language: a Primer.
Lecture 9-1 : Intro. to UML (Unified Modeling Language)
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
1 Unified Modeling Language, Version 2.0 Chapter 2.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 5th Edition Copyright © 2015 John Wiley & Sons, Inc. All rights.
Slide 1 Systems Analysis and Design with UML Version 2.0, Second Edition Alan Dennis, Barbara Wixom, and David Tegarden Chapter 8: Behavioral Modeling.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
UML (Unified Modeling Language)
UML AN OVERVIEW. Topics covered in this Session 1. Introducing UML. 2. What constitutes the UML. 3. Concepts of UML.
PowerPoint Presentation for Dennis, Wixom & Tegarden Systems Analysis and Design Copyright 2001 © John Wiley & Sons, Inc. All rights reserved. Slide 1.
1 Systems Analysis and Design Behavioral Modeling Chapter 8 (Last one before the Midterm!)
Rational ROSE An introduction.
CHAPTER
UML Diagrams By Daniel Damaris Novarianto S..
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Systems Analysis and Design with UML Version 2.0, Second Edition
Systems Analysis and Design
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Review for Midterm, Fall 2009
Unified Modeling Language
Systems Analysis and Design With UML 2
UML Diagrams Jung Woo.
Unified Modeling Language
Chapter 20 Object-Oriented Analysis and Design
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Presentation transcript:

UML an overview Compiled by:Dr. Avi Rosenfeld Based on: http://my.ilstu.edu/~asharm4/432/432.ppt http://www.sts.tu-harburg.de/teaching/ws-97.98/OOA+D/4-4-Class-Advanced.ps חומר מד"ר דיין http://www3.interscience.wiley.com:8100/legacy/college/dennis/0471073229/ppt/ch15.ppt

UML Topics 1. The general picture 2. Use Cases 3. Class Diagrams 4. Sequence Diagram 5. State Chart Diagram

General Picture: 4+1 view Use Case view Understandability Logical View Functionality Process View Performance Scalable Throughput Implementation View Software management Deployment View System topology Delivery Installation

UML Diagrams UML includes diagrams for use cases static structures (class and object diagrams) behavior (state-chart, activity, sequence and collaboration diagrams) implementation (component and deployment diagrams). For data modeling purposes UML uses class diagrams, to which constraints in a textual language may be added

Diagrams in UML A Diagram is the graphical presentation of a set of elements, most often rendered as a connected graph of things and relationships. UML includes 9 such diagrams. 1. Class Diagram. V 2. Object Diagram. V 3. Use Case Diagram. V 4. Sequence Diagram. V 5. Collaboration Diagram. 6. State Chart Diagram. V 7. Activity Diagram. 9. Deployment Diagram.

Class Diagrams Class Diagrams describe the static structure of a system, or how it is structured rather than how it behaves. These diagrams contain the following elements. Classes, which represent entities with common characteristics or features. These features include attributes, operations and associations. Associations, which represent relationships that relate two or more other classes where the relationships have common characteristics or features. These attributes and operations.

Class Diagram Skill Name: String Desc: String Create(): Skill setName(): (Name:String) getName(): String setDesc(): (Desc:String) getDesc(): String destroy()

An Object and Object Instances PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Classes and Objects PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Class Hierarchy PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Object Diagrams Object Diagrams describe the static structure of a system at a particular time. Whereas a class model describes all possible situations, an object model describes a particular situation. Object diagrams contain the following elements: Objects, which represent particular entities. These are instances of classes. Links, which represent particular relationships between objects. These are instances of associations. .

דוגמא של כספומט

Class Diagram for Manage Appointment PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

תלות בין אובייקטים טרמינולוגיה של יחס יחס בשם Association אפשר לתת שם ל-association. כאשר נותנים שם ל-association, יש גם כיוון: ראה את השם Executes. אפשר גם לציין תפקיד role name . דוגמא

סוגים יש יחס מושג Multiplicity ערכים שמופיעים בקצוות הקו המקשר שתי מחלקות. כל ערך אומר כמה אובייקטים מכל מחלקה משתתפים ב- association .

Multiplicity PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Composition יחס בשם Aggregation רשימת היחסים יחס זה הוא יחס חלש. הוא ממודל בעזרת hollow diamond (יהלום חלול). רשימת היחסים היחס One-to-One relationship היחס One-to-Many relationship היחס Many-to-One relationship

Aggregation

Aggregation and Generalization Associations PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Composition

Use case diagrams Use Case Diagrams Use Case Diagrams describe the functionality of a system and users of the system. These diagrams contain the following elements: Actors, which represent users of a system, including human users and other systems. Use Cases, which represent functionality or services provided by a system to users.

High Level Use Case Diagram Manage Resources Resource Manager Manage Projects Project Manager System Admin System Administrator

Unassign Skill from Resource Assign Skill from Resource Managing Resources Use Case Diagram Add Skill Remove Skill Find Skill Update Skill Resource Manager Add Resource Find Resource Remove Resource Update Resource Unassign Skill from Resource Assign Skill from Resource

Actors

Use Case PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Use-Case Diagram for Specialized Actor PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Extends or Uses Associations PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Steps in Creating the Use Case Diagram 1. Identify use cases 2. Draw the system boundary 3. Place use cases on the diagram Group use cases into packages Add special use case associations 4. Identify the actors 5. Add associations PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Sequence Diagrams Sequence Diagrams describe interactions among classes. These interactions are modeled as exchange of messages. These diagrams focus on classes and the messages they exchange to accomplish some desired behavior. Sequence diagrams are a type of interaction diagrams. Sequence diagrams contain the following elements: Class roles, which represent roles that objects may play within the interaction. Lifelines, which represent the existence of an object over a period of time. Activations, which represent the time during which an object is performing an operation. Messages, which represent communication between objects.

Sequence Diagram

Sequence Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Steps in Creating a Sequence Diagram 1. Identify classes 2. Add actions 3. Place lifeline and focus of control PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Syntax for Sequence Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Statechart Diagrams Statechart (or state) diagrams describe the states and responses of a class. Statechart diagrams describe the behavior of a class in response to external stimuli. These diagrams contain the following elements: States, which represent the situations during the life of an object in which it satisfies some condition, performs some activity, or waits for some occurrence. Transitions, which represent relationships between the different states of an object.

Sequence Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

State Chart Diagram

Statechart Concepts A dynamic model showing changes of state of a single class over time in response to events along with its responses and actions Typically not used for all classes, but just to help simplify the design of algorithms for methods of complex classes PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Statechart Diagram for a Hospital Patient PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Syntax for Statechart Diagram PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

The Life of an Order PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Steps for Creating a Statechart Diagram 1. Identify the states 2. Identify the transitions PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.

Statechart Diagram for an Order PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.