UML / UML 2.0 Diagrams (Part I) 1. Overview of the 13 diagrams of UML Structure diagrams 1.Class diagram 2.Composite structure diagram (*) 3.Component.

Slides:



Advertisements
Similar presentations
State Charts Mehran Najafi. Reactive Systems A reactive, event-driven, object is one whose behavior is best characterized by its response to events dispatched.
Advertisements

1 CIS224 Software Projects: Software Engineering and Research Methods Lecture 9 Object, Package, Component and Deployment Diagrams (Based on Fowler, 2004,
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
© 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.
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
COMPONENT DIAGRAM in UML 2.0 Veronica Carrega
© 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1 Architectural Modeling Notations.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
C OMPONENT & D EPLOYMENT D IAGRAMS Hoang Huu Hanh, Hue University hanh-at-hueuni.edu.vn.
Lecture 12: Chapter 22 Topics: UML (Contd.) –Relationship Structural Behavioral –Diagram Structural Behavioral.
UML – Class Diagrams.
1 © Wolfgang Pelz UML3 UML 3 Notations describe how to use reusable software. Package Component Deployment Node.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
C++ Training Datascope Lawrence D’Antonio Lecture 11 UML.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
ACM/JETT Workshop - August 4-5, 2005 UML Modeling using MagicDraw UML for Java Programmers.
An Introduction to Rational Rose Real-Time
The Unified Modeling Language (UML) Class Diagrams.
ITEC 370 Lecture 10 Design. Review Design –Why is it part of the process? –Who is the audience for 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.
Unified Modeling Language, Version 2.0
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
Smith’s Aerospace © P. Bailey & K. Vander Linden, 2005 Architecture: Component and Deployment Diagrams Patrick Bailey Keith Vander Linden Calvin College.
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.
Real Time Systems Modeling Structure in UML (Part I)
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
1 Advanced Software Architecture Muhammad Bilal Bashir PhD Scholar (Computer Science) Mohammad Ali Jinnah University.
UML Diagrams: The Static Model Class Diagrams. The Static Model Define the static structure of the logical model Represent classes, class hierarchies.
L6-S1 UML Overview 2003 SJSU -- CmpE Advanced Object-Oriented Analysis & Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College.
TAL7011 – Lecture 4 UML for Architecture Modeling.
Design Jon Walker. More UML ● What is UML again?
Logical view –show classes and objects Process view –models the executables Implementation view –Files, configuration and versions Deployment view –Physical.
Technology Layer. Technology Layer Metamodel Technology Layer Concepts.
Unified Modelling Language (UML) Software Engineering Lab. Sharif University of Technology.
1 Class Diagrams. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are for visualizing, specifying and documenting.
Ontologies Reasoning Components Agents Simulations Architectural Modeling with UML2 Composite Structures and Components Jacques Robin.
Introduction to OOAD and the UML
Software Engineering Lecture 8 Object-Oriented Analysis.
Architecture View Models A model is a complete, simplified description of a system from a particular perspective or viewpoint. There is no single view.
 Building Block Building Block  Things in the UML Things in the UML  Structural Things Structural Things  Behavioral Things Behavioral Things  Grouping.
COMPONENT DIAGRAM in UML 2.0 Veronica Carrega. PLAN OF TALK  Introduction about components  Components and component diagrams in uml 2.0  Case study.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
Week 04 Object Oriented Analysis and Designing. What is a model? A model is quicker and easier to build A model can be used in simulations, to learn more.
Analysis Yaodong Bi. Introduction to Analysis Purposes of Analysis – Resolve issues related to interference, concurrency, and conflicts among use cases.
Gerhard Dueck -- CS3013Analysis 1. Gerhard Dueck -- CS3013Analysis 2 Why analysis?  Yield a more precise specification of the requirements.  Introduce.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
Object Oriented Programming and Data Abstraction Earl Huff Rowan University.
UML Fundamental Elements. Structural Elements Represent abstractions in our system. Elements that encapsulate the system's set of behaviors. Structural.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
UML (Unified Modeling Language)
1 IS 0020 Program Design and Software Tools Unified Modeling Language Lecture 13 April 13, 2005.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Appendix 3 Object-Oriented Analysis and Design
UML Diagrams: Class Diagrams The Static Analysis Model
UML Diagrams By Daniel Damaris Novarianto S..
COMPONENT & DEPLOYMENT DIAGRAMS
Object-Oriented Analysis and Design
Unified Modeling Language
UML Diagrams Jung Woo.
UML Diagrams: The Static Model Class Diagrams
Object Oriented Analysis and Design
Unified Modeling Language
Chapter 20 Object-Oriented Analysis and Design
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Presentation transcript:

UML / UML 2.0 Diagrams (Part I) 1

Overview of the 13 diagrams of UML Structure diagrams 1.Class diagram 2.Composite structure diagram (*) 3.Component diagram 4.Deployment diagram 5.Object diagram 6.Package diagram Behavior diagrams 1.Use-case diagram 2.State machine diagram 3.Activity diagram Interaction diagrams 1.Sequence diagram 2.Communication diagram 3.Interaction overview diagram (*) 4.Timing diagram (*) (*) not existing in UML 1.x, added in UML 2.0 2

UML principle: diagram vs. model Different diagrams describe various facets of the model Several diagrams of the same kind may coexist Each diagram shows a projection of the model Incoherence between diagrams (of the same or of different kind(s)) correspond to an ill-formed model The coherence rules between different kinds of diagrams is not fully stated 3

Use case diagram Displays the relationship among actors and use cases, in a given system Main concepts: o System – the system under modeling o Actor – external “user” of the system o Use case – execution scenario, observable by an actor 4

5

6

Class diagram The most known and the most used UML diagram Gives information on model structural elements Main concepts involved o Class - Object o Inheritance o Association (various kinds of) 7

UML Class Gives the type of a set of objects existing at run-time Declares a collection of methods and attributes that describe the structure and behavior of its objects 8

Properties of UML classes May own features o Structural (data related) : attributes o Behavioral : methods/operations May own behavior (state machines, interactions, …) May be instantiated o except for abstract classes that can NOT be directly instantiated and exist only for the inheritance hierarchy 9

Decode class symbol adornments Class name in italics: abstract class Underlined attribute = class attribute Simple class box: passive class Vehicle Automobile +wheelsNO : integer -serialNo : integer +fillTank(In volume:real):real Door +wheelsNO : integer -serialNo : integer door 1 * +fillTank(In volume:real):real Feature visibility +, -, #,~ Attributes area Method (operation) area 10

11

Object Instance of a class Can be shown in a class diagram Notation ford : Automobile wheelsNO=4 serialNo=123ABC567 wheelsNO=4 serialNo=123ABC567D 12

Relations Inheritance Association (Aggregation, Composition) Refer to UML_Class_Relation.ppt 13

Interface Declares set of public features and obligations Specifies a contract, to be fulfilled by classes implementing the interface Not instantiable (abstract class) Its specification can be realized by 0, 1 or several classes Interfaces hierarchies can be defined through inheritance relationships In UML 2.0, interface may also include attributes and a special form of a state machine called a protocol state machine. 14

Interface definition and use examples > InteractionPrimitives tokenExchange( > SecureInteraction checkConsistency retrieveLast() checkConsistency() tokenExchange() Satellite SecureInteraction The class Satellite provides implementation for the 3 operations 15

Service Requester vs. Provider Interface SiteSearch is realized (implemented) by SearchService. Interface SiteSearch is used (required) by SearchController 16

17

Package 18 Used to reflect the organization of packages and their elements. When used to represent class elements, package diagrams provide a visualization of the namespaces (domains). Subdivide models to permit teams of developers to manipulate and work effectively together Typically a logical view (compared against the component/subsystem/deployment diagrams)

19

Component Its definition evolves from UML 1.x to UML 2.0 In UML 1.x - deployment artifacts In UML 2.0 – structured classes Modular unit with well-defined interfaces that is replaceable within its environment Autonomous unit within a system Has one or more provided and required interfaces Its internals are hidden and inaccessible A component is encapsulated Its dependencies are designed such that it can be treated as independently as possible 20

A component can have… Interfaces – An interface represents a declaration of a set of operations and obligations Usage dependencies – A usage dependency is relationship which one element requires another element for its full implementation Ports – Port represents an interaction point between a component and its environment Connectors – Connect two components (links are used to connect objects) – Connect the external contract of a component to the internal structure 21

22

Subsystem Used to decompose the physical organization of large- scale system at the highest level of abstraction 23

Nodes and Deployment  Nodes:  Devices and  Execution environment  Focused on the artifacts that deploy executables (i.e.,.exe,.dll,.lib files) 24

25