UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.

Slides:



Advertisements
Similar presentations
UML an overview.
Advertisements

Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Unified Modeling Language
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
© Copyright Eliyahu Brutman Programming Techniques Course.
Introduction to Software Design Chapter 1. Chapter 1: Introduction to Software Design2 Chapter Objectives To become familiar with the software challenge.
UML Diagrams Computer Science I.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Unified Modeling Language, Version 2.0
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
An Introduction to the Unified Modeling Language
UML as a Specification Language for Embedded Systems. By, Mir Ahmed Ali, Asst. Professor, ECM department, SNIST. By, Prof. Narsiah sir, Director of School.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
Lab 5 CPIT 250 System Analysis and Design.
OMT Modeling 1. Object Model : presented by the object model and the data dictionary. 2. Dynamic Model: presented by the state diagrams and event flow.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Chapter 3: Introducing the UML
UML Course Instructor: Rizwana Noor. Overview  Modeling  What is UML?  Why UML?  UML Diagrams  Use Case  Components  Relationships  Notations.
ITEC0724 Modern Related Technology on Mobile Devices Lecture Notes #2 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.
Basic Characteristics of Object-Oriented Systems
Introduction to UML and Rational Rose UML - Unified Modeling Language Rational Rose 98 - a GUI tool to systematically develop software through the following.
UML. Model An abstract representation of a system. Types of model 1.Use case model 2.Domain model 3.Analysis object model 4.Implementation model 5.Test.
Unified Modeling Language. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems,
WELCOME TO OUR PRESENTATION UNIFIED MODELING LANGUAGE (UML)
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Modeling with UML – Class Diagrams
CHAPTER
UML(Unified Modeling Language)
UML Diagrams By Daniel Damaris Novarianto S..
Component and Deployment Diagrams
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Systems Analysis and Design
Evolution of UML.
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Object-Oriented Analysis and Design
Class Diagrams.
Systems Analysis and Design With UML 2
Chapter 11 Object-Oriented Design
Unified Modeling Language
Mastering UML with Rational Rose 2002
Introduction to Unified Modeling Language (UML)
Systems Analysis and Design With UML 2
University of Central Florida COP 3330 Object Oriented Programming
UML Diagrams Jung Woo.
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Object Oriented Analysis and Design
Object Oriented Analysis and Design
Unified Modeling Language
UML Class Diagram.
Chapter 20 Object-Oriented Analysis and Design
CIS 375 Bruce R. Maxim UM-Dearborn
Software Design Lecture : 15.
Software Design Lecture : 14.
An Introduction to Software Architecture
Copyright 2007 Oxford Consulting, Ltd
Chapter 22 Object-Oriented Systems Analysis and Design and UML
CIS 375 Bruce R. Maxim UM-Dearborn
Uml diagrams In ooad.
Chapter 1: Introduction to Systems Analysis and Design
Presentation transcript:

UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for any software system present in the real world.  It provides us a way to develop rich models that describe the working of any software/hardware systems.  Characteristics of UML 1. It is a generalized modeling language. 2. It is different from software programming languages such as Python, C, C++, etc. 3. It is a pictorial language which can be used to generate powerful modeling elements. 4. It is related to object-oriented designs and analysis. 5. It has unlimited applications even outside the software industry. It can be used to visualize the workflow of a factory.

Cont..  Following object-oriented concepts are required to begin with UML: Object: It is a real-world entity. There are multiple objects available within a single system. It is a fundamental building block of UML. Class: A class is nothing but a container where objects and their relationships are maintained. Abstraction: It is a mechanism of representing an entity without showing the implementation details. It is used to visualize the behavior of an object. Inheritance: It is a mechanism of extending an existing class to create a new class. Polymorphism: It is a mechanism of representing an object having multiple forms which are used for different purposes. Encapsulation: It is a method of binding the object and the data together as a single unit. It ensures tight coupling between the object and the data.

Types of UML Diagram  UML is linked with object oriented design and analysis. UML makes the use of elements and forms associations between them to form diagrams. Diagrams in UML can be broadly classified as: Structural Diagrams – Capture static aspects or structure of a system. Structural Diagrams include: Component Diagrams, Object Diagrams, Class Diagrams and Deployment Diagrams. Behavior Diagrams – Capture dynamic aspects or behavior of the system. Behavior diagrams include: Use Case Diagrams, State Diagrams, Activity Diagrams and Interaction Diagrams.

UML Tools  There are many tools available in the market to generate UML diagrams. Some are desktop based while others can be used online. Following list of tools which can be used for the creation of UML models: Star UML Argo UML Dia Visual Paradigm U-Model UML lab Enterprise Architect

Purpose of UML  What're the Purposes of UML? To reason about system behavior. To detect errors and omissions early in the life cycle. To present proposed designs and communicate with stakeholders. To understand requirements. To drive implementation.

UML Use Case Diagram  Purpose 1. Use case diagram is used during the analysis phase of a project to identify the system functionality. It describes the interaction of people or external device with the system under design. 2. It doesn't show much detail, but only summarizes some of the relationships between use cases, actors, and systems.  Usage 1.Basically four elements need to be included in use case diagram. 2.They are actors, system, use case, and relationship. Actors represent whoever or whatever interact with the system. 3.They can be humans, other computers, or other software systems. 4.Use cases represent the actions that are performed by one or more actors for a particular goal. System is whatever you are developing.

UML Use Case Symbols

Example for use case

Class Diagram class diagram describes the attributes and operations of a class and also the constraints imposed on the system. The class diagrams are widely used in the modeling of object oriented systems because they are the only UML diagrams, which can be mapped directly with object-oriented languages. Class diagram shows a collection of classes, interfaces, associations, collaborations, and constraints. It is also known as a structural diagram. 1. The purpose of the class diagram can be summarized as − 2. Analysis and design of the static view of an application. 3.Describe responsibilities of a system. 4.Base for component and deployment diagrams. 5.Forward and reverse engineering.

How to Draw a Class Diagram?  The following points should be remembered while drawing a class diagram The name of the class diagram should be meaningful to describe the aspect of the system. Each element and their relationships should be identified in advance. Responsibility (attributes and methods) of each class should be clearly identified For each class, minimum number of properties should be specified, as unnecessary properties will make the diagram complicated. Use notes whenever required to describe some aspect of the diagram. At the end of the drawing it should be understandable to the developer/coder. Finally, before making the final version, the diagram should be drawn on plain paper and reworked as many times as possible to make it correct.

Benefits of Class Diagram Class Diagram Illustrates data models for even very complex information systems It provides an overview of how the application is structured before studying the actual code. This can easily reduce the maintenance time It helps for better understanding of general schematics of an application. Allows drawing detailed charts which highlights code required to be programmed Helpful for developers and other stakeholders.

Essential elements of A UML class diagram  Essential elements of UML class diagram are: 1. Class Name 2. Attributes 3. Operations  Following rules must be taken care of while representing a class: 1.A class name should always start with a capital letter. 2.A class name should always be in the center of the first compartment. 3.A class name should always be written in bold format. 4.An abstract class name should be written in italics format.  Attributes characteristics 1.The attributes are generally written along with the visibility factor. 2.Public, private, protected and package are the four visibilities which are denoted by +, -, #, or ~ signs respectively. 3.Visibility describes the accessibility of an attribute of a class. 4.Attributes must have a meaningful name that describes the use of it in a class.

Relationships  There are mainly three kinds of relationships in UML: 1.Dependencies 2.Generalizations 3.Associations 1.Dependency A dependency means the relation between two or more classes in which a change in one may force changes in the other. However, it will always create a weaker relationship. Dependency indicates that one class depends on another. 2. Generalization: generalization helps to connect a subclass to its super class. A sub-class is inherited from its super class. Generalization relationship can't be used to model interface implementation. Class diagram allows inheriting from multiple super classes.

Cont.. 3. Association: This kind of relationship represents static relationships between classes A and B. For example; an employee works for an organization.

Multiplicity  A multiplicity is a factor associated with an attribute. It specifies how many instances of attributes are created when a class is initialized.  If a multiplicity is not specified, by default one is considered as a default multiplicity.

Aggregation  Aggregation is a special type of association that models a whole- part relationship between aggregate and its parts.  Here, the college class will remain even if the student is not available.

Composition The composition is a special type of aggregation which denotes strong ownership between two classes when one class is a part of another class. Here if college is not functioning all the students also removed.

Example for class diagram