SlideShare a Scribd company logo
Overview
• What is UML?
• Understanding the basics of UML
• Why UML?
• UML diagrams
• UML Modeling tools
What is UML?
• UML stands for “Unified Modeling Language”
• Modeling is describing system at a high level of
abstraction
• It is a industry-standard graphical language for
specifying, visualizing, constructing, and
documenting the artifacts of software systems
• The UML uses mostly graphical notations to express
the analysis and design of software projects.
• Simplifies the complex process of software design
Why UML for Modeling/Benefits of UML
• Use graphical notation to communicate more
clearly than natural language and code
• Quick understanding
• Help acquire an overall view of a system.
• Lessens chances of conflicts.
• UML is not dependent on any one language or
technology.
• Necessary to manage complexity.
• UML moves us from fragmentation to
standardization.
Types of UML Diagrams
• Use Case Diagram
• Class Diagram
• Activity Diagram
• Sequence Diagram
• Collaboration Diagram
• State Diagram
• Deployment Diagram
Use Case Diagram
• Used for describing a set of user scenarios
• Illustrates functionality provided by the
system
• Mainly used for capturing user requirements
• Work like a contract between end user and
software developers
Use Case Diagram (core components)
Actors: A role that a user plays with respect to the system,including
human users and other systems. e.g.,inanimate physical objects (e.g. robot);
an external system that needs some information from the current system.
Use case: A set of scenarios that describing an interaction between a user
and a system, including alternatives.
System boundary: rectangle diagram representing the boundary
between the actors and the system.
Use Case Diagram(core relationship)
Association: communication between an actor and
a use case; Represented by a solid line.
Generalization: relationship between one general
use case and a special use case (used for defining
special alternatives)
Represented by a line with a triangular arrow head
toward the parent use case.
Use Case Diagram(core relationship)
Extend: a dotted line labeled <<extend>> with an arrow
toward the base case. The extending use case may add behavior to
the base use case. The base class declares “extension points”.
<<extend>>
Include: a dotted line labeled <<include>> beginning at base
use case and ending with an arrows pointing to the include
use case. The include relationship occurs when a chunk of
behavior is similar across more than one use case. Use
“include” in stead of copying the description of that behavior.
<<include>>
Use Case Diagrams
Library System
Borrow
Order Title
Fine Remittance
Client
Employee
Supervisor
• A generalized description of how a system will be used.
• Provides an overview of the intended functionality of the system
Boundary
Actor
Use Case
Use Case Diagrams(cont.)
Use Case Diagrams(cont.)
•Pay Bill is a parent use case and Bill Insurance is the
child use case. (generalization)
•Both Make Appointment and Request Medication
include Check Patient Record as a subtask.(include)
•The extension point is written inside the base case
Pay bill; the extending class Defer payment adds the
behavior of this extension point. (extend)
Class diagram
• Used for describing structure and behavior in
the use cases
• Provide a conceptual model of the system in
terms of entities and their relationships
• Used for requirement capture, end-user
interaction
• Detailed class diagrams are used for
developers
Class representation
• Each class is represented by a rectangle subdivided into three
compartments
– Name
– Attributes
– Operations
• Modifiers are used to indicate visibility of attributes and operations.
– ‘+’ is used to denote Public visibility (everyone)
– ‘#’ is used to denote Protected visibility (friends and derived)
– ‘-’ is used to denote Private visibility (no one)
• By default, attributes are hidden and operations are visible.
An example of Class
Account_Name
- Customer_Name
- Balance
+addFunds( )
+withDraw( )
+transfer( )
Name
Attributes
Operations
Relationships
• There are two kinds of Relationships
– Generalization (parent-child relationship)
– Association (student enrolls in course)
• Associations can be further classified as
– Aggregation
– Composition
Subtype2
Supertype
Subtype1
Relationships: Generalization
- Generalization expresses a
parent/child relationship among related
classes.
- Used for abstracting details in several
layers
Regular
Customer
Loyalty
Customer
Customer
Example:
Regular
Customer
Loyalty
Customer
Customer
or:
Relationships: Association
• Represent relationship between instances of
classes
– Student enrolls in a course
– Courses have students
– Courses have exams
– Etc.
• Association has an end
– Multiplicity (e.g. One course can have many students)
Association: Multiplicity and Roles
University Person
1
0..1
*
*
Multiplicity
Symbol Meaning
1 One and only one
0..1 Zero or one
M..N From M to N (natural
language)
* From zero to any positive
integer
0..* From zero to any positive
integer
1..* From one to any positive
teacher
employer
Role
Role
“A given university groups many people;
some act as students, others as teachers.
A given student belongs to a single
university; a given teacher may or may not
be working for the university at a particular
time.”
student
Association: Model to Implementation
Class Student {
Course enrolls[4];
}
Class Course {
Student have[];
}
Student Course
enrolls
has
* 4
Relationships: Composition
Class W
Class P1 Class P2
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
Part Classes
Automobile
Engine Transmission
Example
Class Diagram Example
Hotel Management System
Activity Diagram
• Procedural flow of control between two or more
class objects
• Activities are grouped into swim lanes.
• Activity is modeled by drawing a rectangle with
rounded edges, enclosing the activity's name.
• Connected to other activities through transition
lines
• Activities that terminate the modeled process are
connected to a termination point
Activity diagram, with
two swim lanes to
indicate control
of activity by two
objects: the band
manager, and the
reporting tool
Sequence Diagram
• Two dimensional
• Vertical dimension shows sequence of
messages in the time order that they occur.
• Horizontal dimension shows the object
instances to which the messages are sent.
• Self-Call can also be there in which a message
that an object sends to itself.
Sequence Diagram(make a phone call)
Caller Phone Recipient
Picks up
Dial tone
Dial
Ring notification Ring
Picks up
Hello
Sequence Diagrams – Object Life Spans
• Creation
– Create message
– Object life starts at that point
• Activation
– Symbolized by rectangular stripes
– Place on the lifeline where object is
activated.
– Rectangle also denotes when object
is deactivated.
• Deletion
– Placing an ‘X’ on lifeline
– Object’s life ends at that point
Activation bar
A
B
Create
X
Deletion
Return
Lifeline
Sequence Diagram
User Catalog Reservations
1: look up ()
2: title data ()
3: [not available] reserve title ()
4 : title returned ()
5: hold title ()
5 : title available ()
6 : borrow title ()
6 : remove reservation ()
Issuing a book from library
Collaboration Diagram
• 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
• Convey the same information as sequence
diagrams, but focus on object roles
instead of the time sequence.
Collaboration diagrams of earlier made sequence diagram of issuing of book
from library
User
Catalog
Reservations
start
1: look up
2: title data
3 : [not available] reserve title
4 : title returned
5 : hold title
6 : borrow title
6: remove reservation
5: title available
State Diagrams
State Diagrams show the sequences of states an object goes through during
its life cycle in response to stimuli, together with its responses and actions; an
abstraction of all possible behaviors.
Unpaid
Start End
Paid
Invoice created payin
g
Invoice destroying
(Billing Example)
Deployment Diagram
• System will be physically deployed in the
hardware environment
• System's production staff makes its
considerable use
• Purpose is to show where the different
components of the system will physically run
and how they will communicate with each
other
Deployment for ATM Machine
UML Modeling Tools
• Rational Rose (www.rational.com) by IBM
• TogetherSoft Control Center, Borland (
http://www.borland.com/together/index.html)
• ArgoUML (free software) (http://argouml.tigris.org/ )
OpenSource; written in java
written in java
• Others (http://www.objectsbydesign.com/tools/umltools_byCompany.html )
Thank You!
Ad

More Related Content

Similar to umlpresentation-140519151641-phpapp02.ppt (20)

Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
babak danyal
 
Interaction modelling is further classified into two types: Use case diagram....
Interaction modelling is further classified into two types: Use case diagram....Interaction modelling is further classified into two types: Use case diagram....
Interaction modelling is further classified into two types: Use case diagram....
Karthik Rohan
 
Intoduction to uml
Intoduction to umlIntoduction to uml
Intoduction to uml
Mahesh Bhalerao
 
UML diagram is a process that Provide a great Knowledge
UML diagram is a process that Provide a great KnowledgeUML diagram is a process that Provide a great Knowledge
UML diagram is a process that Provide a great Knowledge
AssadLeo1
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
AMITJain879
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
PRIANKA R
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
Manish Kumar
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
Raj Thilak S
 
uml2-1214558329929112-8.ppt
uml2-1214558329929112-8.pptuml2-1214558329929112-8.ppt
uml2-1214558329929112-8.ppt
AleksandarUrdarevski
 
FSD MICRO PROJECT UML PPT.pptx
FSD MICRO PROJECT UML PPT.pptxFSD MICRO PROJECT UML PPT.pptx
FSD MICRO PROJECT UML PPT.pptx
ThorOdinson55
 
Unified Modeling Language
Unified Modeling LanguageUnified Modeling Language
Unified Modeling Language
Debajyoti Biswas
 
Uml report
Uml reportUml report
Uml report
Franco Valdez
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
Kris der Rose
 
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejnejeUML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
ssusera6a60c1
 
class diagrams and their relationships
class diagrams and   their relationshipsclass diagrams and   their relationships
class diagrams and their relationships
reshmy12
 
class diagrams and their relationships
class diagrams and   their relationshipsclass diagrams and   their relationships
class diagrams and their relationships
reshmy12
 
unit-1 &2 important questions to be noted
unit-1 &2 important questions to be notedunit-1 &2 important questions to be noted
unit-1 &2 important questions to be noted
22eg105n11
 
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFDOBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
smithaps4
 
UML tutorial
UML tutorialUML tutorial
UML tutorial
Eliza Wright
 
Lecture#03, uml diagrams
Lecture#03, uml diagramsLecture#03, uml diagrams
Lecture#03, uml diagrams
babak danyal
 
Interaction modelling is further classified into two types: Use case diagram....
Interaction modelling is further classified into two types: Use case diagram....Interaction modelling is further classified into two types: Use case diagram....
Interaction modelling is further classified into two types: Use case diagram....
Karthik Rohan
 
UML diagram is a process that Provide a great Knowledge
UML diagram is a process that Provide a great KnowledgeUML diagram is a process that Provide a great Knowledge
UML diagram is a process that Provide a great Knowledge
AssadLeo1
 
Basic Behavioral Modeling
Basic Behavioral ModelingBasic Behavioral Modeling
Basic Behavioral Modeling
AMITJain879
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
PRIANKA R
 
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
22eg105n11
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
Manish Kumar
 
FSD MICRO PROJECT UML PPT.pptx
FSD MICRO PROJECT UML PPT.pptxFSD MICRO PROJECT UML PPT.pptx
FSD MICRO PROJECT UML PPT.pptx
ThorOdinson55
 
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejnejeUML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
ssusera6a60c1
 
class diagrams and their relationships
class diagrams and   their relationshipsclass diagrams and   their relationships
class diagrams and their relationships
reshmy12
 
class diagrams and their relationships
class diagrams and   their relationshipsclass diagrams and   their relationships
class diagrams and their relationships
reshmy12
 
unit-1 &2 important questions to be noted
unit-1 &2 important questions to be notedunit-1 &2 important questions to be noted
unit-1 &2 important questions to be noted
22eg105n11
 
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFDOBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
OBJECT ORIENTED CONCEPTS,UML DIAGRAMS,DFD
smithaps4
 

Recently uploaded (20)

Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
P-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 finalP-glycoprotein pamphlet: iteration 4 of 4 final
P-glycoprotein pamphlet: iteration 4 of 4 final
bs22n2s
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam SuccessUltimate VMware 2V0-11.25 Exam Dumps for Exam Success
Ultimate VMware 2V0-11.25 Exam Dumps for Exam Success
Mark Soia
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACYUNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
UNIT 3 NATIONAL HEALTH PROGRAMMEE. SOCIAL AND PREVENTIVE PHARMACY
DR.PRISCILLA MARY J
 
Ad

umlpresentation-140519151641-phpapp02.ppt

  • 1. Overview • What is UML? • Understanding the basics of UML • Why UML? • UML diagrams • UML Modeling tools
  • 2. What is UML? • UML stands for “Unified Modeling Language” • Modeling is describing system at a high level of abstraction • It is a industry-standard graphical language for specifying, visualizing, constructing, and documenting the artifacts of software systems • The UML uses mostly graphical notations to express the analysis and design of software projects. • Simplifies the complex process of software design
  • 3. Why UML for Modeling/Benefits of UML • Use graphical notation to communicate more clearly than natural language and code • Quick understanding • Help acquire an overall view of a system. • Lessens chances of conflicts. • UML is not dependent on any one language or technology. • Necessary to manage complexity. • UML moves us from fragmentation to standardization.
  • 4. Types of UML Diagrams • Use Case Diagram • Class Diagram • Activity Diagram • Sequence Diagram • Collaboration Diagram • State Diagram • Deployment Diagram
  • 5. Use Case Diagram • Used for describing a set of user scenarios • Illustrates functionality provided by the system • Mainly used for capturing user requirements • Work like a contract between end user and software developers
  • 6. Use Case Diagram (core components) Actors: A role that a user plays with respect to the system,including human users and other systems. e.g.,inanimate physical objects (e.g. robot); an external system that needs some information from the current system. Use case: A set of scenarios that describing an interaction between a user and a system, including alternatives. System boundary: rectangle diagram representing the boundary between the actors and the system.
  • 7. Use Case Diagram(core relationship) Association: communication between an actor and a use case; Represented by a solid line. Generalization: relationship between one general use case and a special use case (used for defining special alternatives) Represented by a line with a triangular arrow head toward the parent use case.
  • 8. Use Case Diagram(core relationship) Extend: a dotted line labeled <<extend>> with an arrow toward the base case. The extending use case may add behavior to the base use case. The base class declares “extension points”. <<extend>> Include: a dotted line labeled <<include>> beginning at base use case and ending with an arrows pointing to the include use case. The include relationship occurs when a chunk of behavior is similar across more than one use case. Use “include” in stead of copying the description of that behavior. <<include>>
  • 9. Use Case Diagrams Library System Borrow Order Title Fine Remittance Client Employee Supervisor • A generalized description of how a system will be used. • Provides an overview of the intended functionality of the system Boundary Actor Use Case
  • 11. Use Case Diagrams(cont.) •Pay Bill is a parent use case and Bill Insurance is the child use case. (generalization) •Both Make Appointment and Request Medication include Check Patient Record as a subtask.(include) •The extension point is written inside the base case Pay bill; the extending class Defer payment adds the behavior of this extension point. (extend)
  • 12. Class diagram • Used for describing structure and behavior in the use cases • Provide a conceptual model of the system in terms of entities and their relationships • Used for requirement capture, end-user interaction • Detailed class diagrams are used for developers
  • 13. Class representation • Each class is represented by a rectangle subdivided into three compartments – Name – Attributes – Operations • Modifiers are used to indicate visibility of attributes and operations. – ‘+’ is used to denote Public visibility (everyone) – ‘#’ is used to denote Protected visibility (friends and derived) – ‘-’ is used to denote Private visibility (no one) • By default, attributes are hidden and operations are visible.
  • 14. An example of Class Account_Name - Customer_Name - Balance +addFunds( ) +withDraw( ) +transfer( ) Name Attributes Operations
  • 15. Relationships • There are two kinds of Relationships – Generalization (parent-child relationship) – Association (student enrolls in course) • Associations can be further classified as – Aggregation – Composition
  • 16. Subtype2 Supertype Subtype1 Relationships: Generalization - Generalization expresses a parent/child relationship among related classes. - Used for abstracting details in several layers Regular Customer Loyalty Customer Customer Example: Regular Customer Loyalty Customer Customer or:
  • 17. Relationships: Association • Represent relationship between instances of classes – Student enrolls in a course – Courses have students – Courses have exams – Etc. • Association has an end – Multiplicity (e.g. One course can have many students)
  • 18. Association: Multiplicity and Roles University Person 1 0..1 * * Multiplicity Symbol Meaning 1 One and only one 0..1 Zero or one M..N From M to N (natural language) * From zero to any positive integer 0..* From zero to any positive integer 1..* From one to any positive teacher employer Role Role “A given university groups many people; some act as students, others as teachers. A given student belongs to a single university; a given teacher may or may not be working for the university at a particular time.” student
  • 19. Association: Model to Implementation Class Student { Course enrolls[4]; } Class Course { Student have[]; } Student Course enrolls has * 4
  • 20. Relationships: Composition Class W Class P1 Class P2 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 Part Classes Automobile Engine Transmission Example
  • 21. Class Diagram Example Hotel Management System
  • 22. Activity Diagram • Procedural flow of control between two or more class objects • Activities are grouped into swim lanes. • Activity is modeled by drawing a rectangle with rounded edges, enclosing the activity's name. • Connected to other activities through transition lines • Activities that terminate the modeled process are connected to a termination point
  • 23. Activity diagram, with two swim lanes to indicate control of activity by two objects: the band manager, and the reporting tool
  • 24. Sequence Diagram • Two dimensional • Vertical dimension shows sequence of messages in the time order that they occur. • Horizontal dimension shows the object instances to which the messages are sent. • Self-Call can also be there in which a message that an object sends to itself.
  • 25. Sequence Diagram(make a phone call) Caller Phone Recipient Picks up Dial tone Dial Ring notification Ring Picks up Hello
  • 26. Sequence Diagrams – Object Life Spans • Creation – Create message – Object life starts at that point • Activation – Symbolized by rectangular stripes – Place on the lifeline where object is activated. – Rectangle also denotes when object is deactivated. • Deletion – Placing an ‘X’ on lifeline – Object’s life ends at that point Activation bar A B Create X Deletion Return Lifeline
  • 27. Sequence Diagram User Catalog Reservations 1: look up () 2: title data () 3: [not available] reserve title () 4 : title returned () 5: hold title () 5 : title available () 6 : borrow title () 6 : remove reservation () Issuing a book from library
  • 28. Collaboration Diagram • 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 • Convey the same information as sequence diagrams, but focus on object roles instead of the time sequence.
  • 29. Collaboration diagrams of earlier made sequence diagram of issuing of book from library User Catalog Reservations start 1: look up 2: title data 3 : [not available] reserve title 4 : title returned 5 : hold title 6 : borrow title 6: remove reservation 5: title available
  • 30. State Diagrams State Diagrams show the sequences of states an object goes through during its life cycle in response to stimuli, together with its responses and actions; an abstraction of all possible behaviors. Unpaid Start End Paid Invoice created payin g Invoice destroying (Billing Example)
  • 31. Deployment Diagram • System will be physically deployed in the hardware environment • System's production staff makes its considerable use • Purpose is to show where the different components of the system will physically run and how they will communicate with each other
  • 33. UML Modeling Tools • Rational Rose (www.rational.com) by IBM • TogetherSoft Control Center, Borland ( http://www.borland.com/together/index.html) • ArgoUML (free software) (http://argouml.tigris.org/ ) OpenSource; written in java written in java • Others (http://www.objectsbydesign.com/tools/umltools_byCompany.html )