SlideShare a Scribd company logo
Business Analysis
Training
Introduction to UML
Page 2Classification: Restricted
Agenda
• Introduction to OOA and UML
• Stated vs Un-stated
• Software Analysis and Design
• Modeling
• UML
• Why UML
• Overview
• Types
• Use Case Diagram
• Types of Actor
• Class Diagram
• What is Class Diagram
• Class Representation
• Types of Class
• Sequence Diagram
• Interaction Diagram
Page 3Classification: Restricted
Introduction
• Object Oriented Analysis and Design is an important skill for Business
Analysts as well as Technical Architects
• The design is dependent on a good analysis
Page 4Classification: Restricted
Software Analysis and Design
Page 5Classification: Restricted
What is UML?
• UML stands for “Unified Modeling Language”
• 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 OO analysis and
design of software projects.
• Simplifies the complex process of software design
Page 6Classification: Restricted
Why UML for Modeling
• Use graphical notation to communicate more clearly than natural
language (imprecise) and code(too detailed).
• Help acquire an overall view of a system.
• UML is not dependent on any one language or technology.
• UML moves us from fragmentation to standardization.
Page 7Classification: Restricted
Types of UML Diagrams
• Use Case Diagram
• Class Diagram
• Sequence Diagram
• Collaboration Diagram
• State Diagram
This is only a subset of diagrams … but are most widely used
Page 8Classification: Restricted
Use Case Diagram
• Used for describing a set of user scenarios
• Mainly used for capturing user requirements
• Work like a contract between end user and software developers
Page 9Classification: Restricted
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.
Page 10Classification: Restricted
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.
Page 11Classification: Restricted
Generalization
Page 12Classification: Restricted
Use Case Diagram (core relationship)
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>>
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>>
Page 13Classification: Restricted
Use Case Diagram (core relationship)
Page 14Classification: Restricted
Use Case Diagram (core relationship)
Page 15Classification: Restricted
Use Case Diagrams
Library System
Borrow
Order Title
Fine Remittance
Client
Employee
Supervisor
Boundary
Actor
Use Case
Page 16Classification: Restricted
Use Case Diagrams
Page 17Classification: Restricted
Types of Actor
Actors
Primary Actor Secondary Actor
Page 18Classification: Restricted
Types of Actor
Page 19Classification: Restricted
Exercise
Page 20Classification: Restricted
Use Case Specification
Page 21Classification: Restricted
Exercise
Page 22Classification: Restricted
Use Cases for the Exercise
Page 23Classification: Restricted
Actors for the Exercise
Page 24Classification: Restricted
Relationship between the actors
Page 25Classification: Restricted
25
• Object-oriented analysis and design (OOAD) is a technical approach used in
the analysis and design of an application or system through the application
of the object-oriented paradigm and concepts including visual modeling.
• This is applied throughout the development life cycle of the application or
system, fostering better product quality and even encouraging stakeholder
participation and communication
Page 26Classification: Restricted
• 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 diagram
Page 27Classification: Restricted
A collection of similar objects is a class. And an object is an instance of a class.
What is a Class?
Page 28Classification: Restricted
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.
Page 29Classification: Restricted
An example of Class
Account_Name
- Customer_Name
- Balance
+addFunds( )
+withDraw( )
+transfer( )
Name
Attributes
Operations
Page 30Classification: Restricted
• Super Class
• Parent Class
• Generalized Class
• Specialized Class
• Sub Class
• Child Class
Types of Classes
Page 31Classification: Restricted
Animal
Amphibian Mammal Reptile
Horse
Example
Child Class
of Animal
Child Class
of Animal
Child Class
of Mammal
Super Class
of horse
Parent Class
of Mammal
Sub Class of
Animal
Page 32Classification: Restricted
OO Relationships
• There are two kinds of Relationships
• Generalization (parent-child relationship)
• Association (one object to another object relationship)
• Associations can be further classified as
• Aggregation
• Composition
Page 33Classification: Restricted
OO Relationships : Generalization
Subtype2
Supertype
Subtype1
• 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
Customeror:
Page 34Classification: Restricted
OO Relationships : Association
• Represent relationship between instances of classes
• Student enrolls in a course
• Courses have students
• Courses have exams
• Etc.
• Association has two ends
• Role names (e.g. enrolls)
• Multiplicity (e.g. One course can have many students)
• Navigability (unidirectional, bidirectional)
Page 35Classification: Restricted
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 integer
teacheremployee
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: Multiplicity and Roles
Page 36Classification: Restricted
Class Diagram
Page 37Classification: Restricted
OO Relationships : Composition
Class W
Class P1 Class P2
Whole Class
Part Classes
Automobile
Engine Transmission
Example
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.
[From Dr.David A. Workman]
Page 38Classification: Restricted
OO Relationships : Composition
[From Dr.David A. orkman]
Class C
Class E1 Class E2
AGGREGATION
Container Class
Containee Classes
Bag
Apples Milk
Example
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.
Page 39Classification: Restricted
Aggregations vs. Composition
• Composition is really a strong form of aggregation
• components have only one owner
• components cannot exist independent of their
owner
• components live or die with their owner
e.g. Each car has an engine that can not be
shared with other cars.
•Aggregations may form "part of" the aggregate, but may not be
essential to it. They may also exist independent of the aggregate.
e.g. Apples may exist independent of the bag.
Page 40Classification: Restricted
Interaction Diagrams
A Sequence diagram is an interaction diagram that shows how objects
operate with one another and in what order.
• They're also called event diagrams.
• A sequence diagram is a good way to visualize and validate various
runtime scenarios.
• These can help to predict how a system will behave and to discover
responsibilities a class may need to have in the process of
modeling a new system
Page 41Classification: Restricted
Sequence Diagrams
Page 42Classification: Restricted
Class Roles or Participants
Class roles describe the way an object will behave in context. Use the UML
object symbol to illustrate class roles, but don't list object attributes.
Basic Sequence Diagram Symbols and Notations
Page 43Classification: Restricted
Basic Sequence Diagram Symbols and Notations
Activation or Execution Occurrence
Activation boxes represent the time an object needs to complete a task.
When an object is busy executing a process or waiting for a reply message,
use a thin gray rectangle placed vertically on its lifeline.
Page 44Classification: Restricted
Basic Sequence Diagram Symbols and Notations
Messages
Messages are arrows that represent communication between objects. Use
half-arrowed lines to represent asynchronous messages. Asynchronous
messages are sent from an object that will not wait for a response from the
receiver before continuing its tasks..
Page 45Classification: Restricted
Basic Sequence Diagram Symbols and Notations
Lifelines
Lifelines are vertical dashed lines that indicate the object's presence over
time.
Page 46Classification: Restricted
Basic Sequence Diagram Symbols and Notations
Destroying Objects
Objects can be terminated early using an arrow labeled "<< destroy >>" that
points to an X. This object is removed from memory. When that object's
lifeline ends, you can place an X at the end of its lifeline to denote a
destruction occurrence.
Loops
A repetition or loop within a sequence diagram is depicted as a rectangle.
Place the condition for exiting the loop at the bottom left corner in square
brackets [ ].
Page 47Classification: Restricted
Types of Messages in Sequence Diagram
Synchronous Message
A synchronous message requires a response before the interaction can
continue. It's usually drawn using a line with a solid arrowhead pointing
from one object to another.
Page 48Classification: Restricted
Types of Messages in Sequence Diagram
Asynchronous Message
Asynchronous messages don't need a reply for interaction to continue. Like
synchronous messages, they are drawn with an arrow connecting two
lifelines; however, the arrowhead is usually open and there's no return
message depicted.
Page 49Classification: Restricted
Types of Messages in Sequence Diagram
Page 50Classification: Restricted
Types of Messages in Sequence Diagram
Page 51Classification: Restricted
Types of Messages in Sequence Diagram
Page 52Classification: Restricted
Types of Messages in Sequence Diagram
Page 53Classification: Restricted
Caller Phone Recipient
Picks up
Dial tone
Dial
Ring notification Ring
Picks up
Hello
Sequence Diagram (make a phone call)
Page 54Classification: Restricted
Sequence Diagram : Object interaction
Self-Call: A message that an
Object sends to itself.
Condition: indicates when a
message is sent. The message is
sent only if the condition is true.
Iteration
Condition
A B
Synchronous
Asynchronous
Transmission
delayed
Self-Call
[condition]
remove()
*[for each]
remove()
Page 55Classification: Restricted
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
Page 56Classification: Restricted
Sequence Diagrams – Example
Page 57Classification: Restricted
The second interaction diagram is collaboration diagram. It shows the
object organization. Here in collaboration diagram the method call
sequence is indicated by some numbering technique.
Collaboration Diagrams
Page 58Classification: Restricted
Collaboration Diagram : Example
Page 59Classification: Restricted
• Shows the relationship between objects and the order of messages passed
between hem.
• The objects are listed as rectangles and arrows indicate the messages being
passed
• The numbers next to the messages are called sequence numbers. They
show the sequence of the messages as they are passed between the objects.
• Convey the same information as sequence diagrams, but focus on object
roles instead of the time sequence.
Interaction Diagrams : Collaboration diagrams
Page 60Classification: Restricted
State Diagrams: (Billing Example)
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 paying Invoice destroying
Page 61Classification: Restricted
State Diagrams: (Traffic light example)
Yellow
Red
Green
Traffic Light
State
Transition
Event
Star
t
Page 62Classification: Restricted
Activity Diagram
Overview
• Activity diagram is another important diagram in UML to describe dynamic
aspects of the system.
• Activity diagram is basically a flow chart to represent the flow form one
activity to another activity. The activity can be described as an operation of
the system.
• So the control flow is drawn from one operation to another. This flow can
be sequential, branched or concurrent. Activity diagrams deals with all type
of flow control by using different elements like fork, join etc.
Page 63Classification: Restricted
Purpose of an Activity Diagram
• Draw the activity flow of a system.
• Describe the sequence from one activity to another.
• Describe the parallel, branched and concurrent flow of the system.
Page 64Classification: Restricted
Elements of Activity Diagram
Page 65Classification: Restricted
Activity Diagram : Example
Page 66Classification: Restricted
Page 67Classification: Restricted
Page 68Classification: Restricted
Activity Diagram : Example
Page 69Classification: Restricted
Page 70Classification: Restricted
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
• Others
(http://www.objectsbydesign.com/tools/umltools_byCompany.html )
Page 71Classification: Restricted
Reference
1. UML Distilled: A Brief Guide to the Standard Object Modeling Language
Martin Fowler, Kendall Scott
2. IBM Rational
http://www-306.ibm.com/software/rational/uml/
3. Practical UML --- A Hands-On Introduction for Developers
http://www.togethersoft.com/services/practical_guides/umlonlinecourse/
4. Software Engineering Principles and Practice. Second Edition;
Hans van Vliet.
5. http://www-inst.eecs.berkeley.edu/~cs169/
Page 72Classification: Restricted
Thank you

More Related Content

PPSX
Introduction to OOA and UML
PPSX
Introduction to OOA and UML - Part 1
PPSX
Introduction to OOA and UML
PPSX
Introduction to OOA and UML - Part 2
PPT
Ch 5 O O Data Modeling
PPSX
Unified Modeling Language - UML - Complete Guide - Part 2
PPT
Object Oriented Relationships
PPSX
Unified Modeling Language - UML - Complete Guide - Part 1
Introduction to OOA and UML
Introduction to OOA and UML - Part 1
Introduction to OOA and UML
Introduction to OOA and UML - Part 2
Ch 5 O O Data Modeling
Unified Modeling Language - UML - Complete Guide - Part 2
Object Oriented Relationships
Unified Modeling Language - UML - Complete Guide - Part 1

What's hot (16)

PPT
Ch 5 O O Data Modeling Class
PPT
Ch 3 E R Model
PPT
Ch 12 O O D B Dvlpt
PPT
Ch 6 Logical D B Design
PDF
Db lec 02_new
PDF
Object oriented software engineering concepts
PPTX
Object Oriented Approach for Software Development
PPT
Erd chapter 3
PDF
ERD - Entity Relationship Diagram
PPTX
Basic database analysis(database)
PPTX
Object oriented database model
PPT
Entity relationship diagram (erd)
PPTX
Entity relationship modelling - DE L300
PPTX
Data modeling
PPT
Lecture 03 data abstraction and er model
Ch 5 O O Data Modeling Class
Ch 3 E R Model
Ch 12 O O D B Dvlpt
Ch 6 Logical D B Design
Db lec 02_new
Object oriented software engineering concepts
Object Oriented Approach for Software Development
Erd chapter 3
ERD - Entity Relationship Diagram
Basic database analysis(database)
Object oriented database model
Entity relationship diagram (erd)
Entity relationship modelling - DE L300
Data modeling
Lecture 03 data abstraction and er model
Ad

Similar to Introduction to UML (20)

PPSX
Introduction to OOA and UML
PPT
UML Introduction The system development life cycle (SDLC) is a complex projec...
PPSX
Introduction to OOA and UML - Part 2
PPT
Uml report
PPTX
Slideshow on the notes of software engineering
PPT
CASE Tools lab.ppt
PPT
UML Diagrams
PDF
use case ABOUT computer programming .pdf
PPTX
UML Chart Designing Methods - Lecture.pptx
PPT
uml2-1214558329929112-8.ppt
PPTX
OOP_Module 2.pptx
PPTX
Interaction modelling is further classified into two types: Use case diagram....
PPT
umlpresentation-140519151641-phpapp02.ppt
PPTX
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
PPTX
2CPP05 - Modelling an Object Oriented Program
PDF
Lecture05-Structural Modeling for students.pdf
PPTX
PPSX
Introduction to OOA and UML
PPT
ASP.NET System design 2
PPT
Fundamentals of Software Engineering
Introduction to OOA and UML
UML Introduction The system development life cycle (SDLC) is a complex projec...
Introduction to OOA and UML - Part 2
Uml report
Slideshow on the notes of software engineering
CASE Tools lab.ppt
UML Diagrams
use case ABOUT computer programming .pdf
UML Chart Designing Methods - Lecture.pptx
uml2-1214558329929112-8.ppt
OOP_Module 2.pptx
Interaction modelling is further classified into two types: Use case diagram....
umlpresentation-140519151641-phpapp02.ppt
UML_Lecture.pptxnd bfdjjrnekdddkeeeenekejneje
2CPP05 - Modelling an Object Oriented Program
Lecture05-Structural Modeling for students.pdf
Introduction to OOA and UML
ASP.NET System design 2
Fundamentals of Software Engineering
Ad

More from SwatiS-BA (12)

PPSX
Agile Training for Business Analysts
PPSX
SDLC Training for Business Analysts
PPSX
UML Training for Business Analysts
PPSX
Resume/Interview Preparation
PPSX
Role of BA in Testing
PPSX
Roles and Responsibilities of a BA
PPSX
Workflow and Database Management
PPSX
Requirements Management
PPSX
Requirement Elicitation Techniques
PPSX
Enterprise Analysis
PPSX
Software Development Life Cycle – SDLC
PPSX
Introduction to Business Analysis
Agile Training for Business Analysts
SDLC Training for Business Analysts
UML Training for Business Analysts
Resume/Interview Preparation
Role of BA in Testing
Roles and Responsibilities of a BA
Workflow and Database Management
Requirements Management
Requirement Elicitation Techniques
Enterprise Analysis
Software Development Life Cycle – SDLC
Introduction to Business Analysis

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
MIND Revenue Release Quarter 2 2025 Press Release
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
NewMind AI Weekly Chronicles - August'25 Week I
“AI and Expert System Decision Support & Business Intelligence Systems”
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
MYSQL Presentation for SQL database connectivity
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
Network Security Unit 5.pdf for BCA BBA.
Programs and apps: productivity, graphics, security and other tools
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
Encapsulation_ Review paper, used for researhc scholars
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

Introduction to UML

  • 2. Page 2Classification: Restricted Agenda • Introduction to OOA and UML • Stated vs Un-stated • Software Analysis and Design • Modeling • UML • Why UML • Overview • Types • Use Case Diagram • Types of Actor • Class Diagram • What is Class Diagram • Class Representation • Types of Class • Sequence Diagram • Interaction Diagram
  • 3. Page 3Classification: Restricted Introduction • Object Oriented Analysis and Design is an important skill for Business Analysts as well as Technical Architects • The design is dependent on a good analysis
  • 5. Page 5Classification: Restricted What is UML? • UML stands for “Unified Modeling Language” • 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 OO analysis and design of software projects. • Simplifies the complex process of software design
  • 6. Page 6Classification: Restricted Why UML for Modeling • Use graphical notation to communicate more clearly than natural language (imprecise) and code(too detailed). • Help acquire an overall view of a system. • UML is not dependent on any one language or technology. • UML moves us from fragmentation to standardization.
  • 7. Page 7Classification: Restricted Types of UML Diagrams • Use Case Diagram • Class Diagram • Sequence Diagram • Collaboration Diagram • State Diagram This is only a subset of diagrams … but are most widely used
  • 8. Page 8Classification: Restricted Use Case Diagram • Used for describing a set of user scenarios • Mainly used for capturing user requirements • Work like a contract between end user and software developers
  • 9. Page 9Classification: Restricted 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.
  • 10. Page 10Classification: Restricted 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.
  • 12. Page 12Classification: Restricted Use Case Diagram (core relationship) 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>> 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>>
  • 13. Page 13Classification: Restricted Use Case Diagram (core relationship)
  • 14. Page 14Classification: Restricted Use Case Diagram (core relationship)
  • 15. Page 15Classification: Restricted Use Case Diagrams Library System Borrow Order Title Fine Remittance Client Employee Supervisor Boundary Actor Use Case
  • 17. Page 17Classification: Restricted Types of Actor Actors Primary Actor Secondary Actor
  • 22. Page 22Classification: Restricted Use Cases for the Exercise
  • 25. Page 25Classification: Restricted 25 • Object-oriented analysis and design (OOAD) is a technical approach used in the analysis and design of an application or system through the application of the object-oriented paradigm and concepts including visual modeling. • This is applied throughout the development life cycle of the application or system, fostering better product quality and even encouraging stakeholder participation and communication
  • 26. Page 26Classification: Restricted • 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 diagram
  • 27. Page 27Classification: Restricted A collection of similar objects is a class. And an object is an instance of a class. What is a Class?
  • 28. Page 28Classification: Restricted 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.
  • 29. Page 29Classification: Restricted An example of Class Account_Name - Customer_Name - Balance +addFunds( ) +withDraw( ) +transfer( ) Name Attributes Operations
  • 30. Page 30Classification: Restricted • Super Class • Parent Class • Generalized Class • Specialized Class • Sub Class • Child Class Types of Classes
  • 31. Page 31Classification: Restricted Animal Amphibian Mammal Reptile Horse Example Child Class of Animal Child Class of Animal Child Class of Mammal Super Class of horse Parent Class of Mammal Sub Class of Animal
  • 32. Page 32Classification: Restricted OO Relationships • There are two kinds of Relationships • Generalization (parent-child relationship) • Association (one object to another object relationship) • Associations can be further classified as • Aggregation • Composition
  • 33. Page 33Classification: Restricted OO Relationships : Generalization Subtype2 Supertype Subtype1 • 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 Customeror:
  • 34. Page 34Classification: Restricted OO Relationships : Association • Represent relationship between instances of classes • Student enrolls in a course • Courses have students • Courses have exams • Etc. • Association has two ends • Role names (e.g. enrolls) • Multiplicity (e.g. One course can have many students) • Navigability (unidirectional, bidirectional)
  • 35. Page 35Classification: Restricted 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 integer teacheremployee 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: Multiplicity and Roles
  • 37. Page 37Classification: Restricted OO Relationships : Composition Class W Class P1 Class P2 Whole Class Part Classes Automobile Engine Transmission Example 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. [From Dr.David A. Workman]
  • 38. Page 38Classification: Restricted OO Relationships : Composition [From Dr.David A. orkman] Class C Class E1 Class E2 AGGREGATION Container Class Containee Classes Bag Apples Milk Example 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.
  • 39. Page 39Classification: Restricted Aggregations vs. Composition • Composition is really a strong form of aggregation • components have only one owner • components cannot exist independent of their owner • components live or die with their owner e.g. Each car has an engine that can not be shared with other cars. •Aggregations may form "part of" the aggregate, but may not be essential to it. They may also exist independent of the aggregate. e.g. Apples may exist independent of the bag.
  • 40. Page 40Classification: Restricted Interaction Diagrams A Sequence diagram is an interaction diagram that shows how objects operate with one another and in what order. • They're also called event diagrams. • A sequence diagram is a good way to visualize and validate various runtime scenarios. • These can help to predict how a system will behave and to discover responsibilities a class may need to have in the process of modeling a new system
  • 42. Page 42Classification: Restricted Class Roles or Participants Class roles describe the way an object will behave in context. Use the UML object symbol to illustrate class roles, but don't list object attributes. Basic Sequence Diagram Symbols and Notations
  • 43. Page 43Classification: Restricted Basic Sequence Diagram Symbols and Notations Activation or Execution Occurrence Activation boxes represent the time an object needs to complete a task. When an object is busy executing a process or waiting for a reply message, use a thin gray rectangle placed vertically on its lifeline.
  • 44. Page 44Classification: Restricted Basic Sequence Diagram Symbols and Notations Messages Messages are arrows that represent communication between objects. Use half-arrowed lines to represent asynchronous messages. Asynchronous messages are sent from an object that will not wait for a response from the receiver before continuing its tasks..
  • 45. Page 45Classification: Restricted Basic Sequence Diagram Symbols and Notations Lifelines Lifelines are vertical dashed lines that indicate the object's presence over time.
  • 46. Page 46Classification: Restricted Basic Sequence Diagram Symbols and Notations Destroying Objects Objects can be terminated early using an arrow labeled "<< destroy >>" that points to an X. This object is removed from memory. When that object's lifeline ends, you can place an X at the end of its lifeline to denote a destruction occurrence. Loops A repetition or loop within a sequence diagram is depicted as a rectangle. Place the condition for exiting the loop at the bottom left corner in square brackets [ ].
  • 47. Page 47Classification: Restricted Types of Messages in Sequence Diagram Synchronous Message A synchronous message requires a response before the interaction can continue. It's usually drawn using a line with a solid arrowhead pointing from one object to another.
  • 48. Page 48Classification: Restricted Types of Messages in Sequence Diagram Asynchronous Message Asynchronous messages don't need a reply for interaction to continue. Like synchronous messages, they are drawn with an arrow connecting two lifelines; however, the arrowhead is usually open and there's no return message depicted.
  • 49. Page 49Classification: Restricted Types of Messages in Sequence Diagram
  • 50. Page 50Classification: Restricted Types of Messages in Sequence Diagram
  • 51. Page 51Classification: Restricted Types of Messages in Sequence Diagram
  • 52. Page 52Classification: Restricted Types of Messages in Sequence Diagram
  • 53. Page 53Classification: Restricted Caller Phone Recipient Picks up Dial tone Dial Ring notification Ring Picks up Hello Sequence Diagram (make a phone call)
  • 54. Page 54Classification: Restricted Sequence Diagram : Object interaction Self-Call: A message that an Object sends to itself. Condition: indicates when a message is sent. The message is sent only if the condition is true. Iteration Condition A B Synchronous Asynchronous Transmission delayed Self-Call [condition] remove() *[for each] remove()
  • 55. Page 55Classification: Restricted 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
  • 57. Page 57Classification: Restricted The second interaction diagram is collaboration diagram. It shows the object organization. Here in collaboration diagram the method call sequence is indicated by some numbering technique. Collaboration Diagrams
  • 59. Page 59Classification: Restricted • Shows the relationship between objects and the order of messages passed between hem. • The objects are listed as rectangles and arrows indicate the messages being passed • The numbers next to the messages are called sequence numbers. They show the sequence of the messages as they are passed between the objects. • Convey the same information as sequence diagrams, but focus on object roles instead of the time sequence. Interaction Diagrams : Collaboration diagrams
  • 60. Page 60Classification: Restricted State Diagrams: (Billing Example) 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 paying Invoice destroying
  • 61. Page 61Classification: Restricted State Diagrams: (Traffic light example) Yellow Red Green Traffic Light State Transition Event Star t
  • 62. Page 62Classification: Restricted Activity Diagram Overview • Activity diagram is another important diagram in UML to describe dynamic aspects of the system. • Activity diagram is basically a flow chart to represent the flow form one activity to another activity. The activity can be described as an operation of the system. • So the control flow is drawn from one operation to another. This flow can be sequential, branched or concurrent. Activity diagrams deals with all type of flow control by using different elements like fork, join etc.
  • 63. Page 63Classification: Restricted Purpose of an Activity Diagram • Draw the activity flow of a system. • Describe the sequence from one activity to another. • Describe the parallel, branched and concurrent flow of the system.
  • 70. Page 70Classification: Restricted 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 • Others (http://www.objectsbydesign.com/tools/umltools_byCompany.html )
  • 71. Page 71Classification: Restricted Reference 1. UML Distilled: A Brief Guide to the Standard Object Modeling Language Martin Fowler, Kendall Scott 2. IBM Rational http://www-306.ibm.com/software/rational/uml/ 3. Practical UML --- A Hands-On Introduction for Developers http://www.togethersoft.com/services/practical_guides/umlonlinecourse/ 4. Software Engineering Principles and Practice. Second Edition; Hans van Vliet. 5. http://www-inst.eecs.berkeley.edu/~cs169/