SlideShare a Scribd company logo
Business Analysis
Training
UML And Use Case Study
Page 2Classification: Restricted
Agenda
• UML - Unified Modeling Language
• Modeling
• Why UML for Modeling
• Object Oriented Concepts
• Object Oriented Modeling
• Basic Building blocks -UML
• Overview of UML Diagrams
• UML Diagrams - Basic Notations
• UML Diagrams - Relationships
• UML Diagrams - Structural diagram
• UML Diagrams - Behavioral diagram
• UML Diagrams - Architectural
Page 3Classification: Restricted
UML - Unified Modeling Language
• UML (Unified Modeling Language) is a standard language for
specifying, visualizing, constructing, and documenting the artifacts of
software systems.
• UML is a pictorial language used to make software blueprints.
• The UML uses mostly graphical notations to express the OO analysis
and design of software projects.
• UML can be described as the successor of object-oriented (OO)
analysis and design.
Page 4Classification: Restricted
Modeling
• Describing a system at a high level of abstraction
– A model of the system
– Used for requirements and specifications
• Is it necessary to model software systems?
Page 5Classification: 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 6Classification: Restricted
Object Oriented Concepts
Following are some fundamental concepts of the object-oriented world
Objects − Objects represent an entity and the basic building block. An object
contains both data and methods that control the data.
Class − Class is the blue print of an object.
Abstraction − Abstraction represents the behaviour of an real world entity.
Encapsulation − Encapsulation is the mechanism of binding the data together
and hiding them from the outside world.
Inheritance − Inheritance is the mechanism of making new classes from
existing ones.
Polymorphism − It defines the mechanism to exists in different forms.
Page 7Classification: Restricted
Object Oriented Modeling
Page 8Classification: Restricted
Basic Building blocks -UML
The building blocks of UML can be defined as −
• Things
• Relationships
• Diagrams
Page 9Classification: Restricted
Basic Building Blocks – UML ( Things)
• Structural
• Behavioural
• Grouping
• Annotation
Structural : Static parts of UML models
Physical and conceptual models
Page 10Classification: Restricted
Basic Building Blocks – UML ( Things)
Behavioural : dynamic parts of UML models.
Interaction − Interaction is defined as a behaviour that consists of a group of
messages exchanged among elements to accomplish a specific task.
State machine − It defines the sequence of states an object goes through in
response to events. Events are external factors responsible for state change
Page 11Classification: Restricted
Basic Building Blocks–UML (Things)
Grouping : Group elements of a UML model together.
Package is the only one grouping thing available for gathering structural
and behavioral things.
Annotations : Mechanism to capture remarks, descriptions, and
comments of UML model elements.
Page 12Classification: Restricted
Basic Building Blocks–UML (Relationships)
Relationship reflects the association between the elements
• Dependency : Change in one affects other
------------------->
• Association : set of links that connects the elements of a UML model
• Generalizations : Representing inheritance
• Realization : Representing Interface. One element describes some
responsibility, which is not implemented and the other one
implements them
Page 13Classification: Restricted
Basic Building Blocks–UML (Diagrams)
All the elements, relationships are used to make a complete UML
diagram and the diagram represents a system.Dependency : Change in
one affects other
• Use Case Diagram
• Class Diagram
• Sequence Diagram
• Activity Diagram
• Collaboration Diagram
• State Diagram
This is only a subset of diagrams … but are most widely used
Page 14Classification: Restricted
Structural
: element of spec. irrespective of time
o Class
o Component
o Deployment
o Object
o Composite structure
Overview of UML Diagrams
Behavioral
: behavioral features of a system / business
process
o Activity
o Use case
o State
o Interaction
o Sequence
o Collaboration
Architecture
: Overall framework
o Package
Page 15Classification: Restricted
UML Diagrams : Basic Notations
Class Notation
Object Notation
Interface Notation Collaboration Notation
Actor
Page 16Classification: Restricted
UML Diagrams : Basic Notations
Initial state Node Notation
Package Notation Note Notation
Final state
Page 17Classification: Restricted
UML Diagrams - Relationships
• There are two kinds of Relationships
• Generalization (parent-child relationship)
• Association (student enrolls in course)
• Associations can be further classified as
• Aggregation
• Composition
Page 18Classification: Restricted
UML Diagrams - Structural Diagram
Class Diagram
• Used to model the static view of an application.
• Describing responsibilities of a system
• Provide a conceptual model of the system in terms of entities and their
relationships
• Used for requirement capture, end-user interaction
• Base for component and deployment diagrams
Page 19Classification: Restricted
UML Diagrams – Structural 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.
Class Diagram
Page 20Classification: Restricted
UML Diagrams – Structural Diagram
• 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.
Class Diagram
Page 21Classification: Restricted
UML Diagrams – Structural Diagrams
Account_Name
- Customer_Name
- Balance
+addFunds( )
+withDraw( )
+transfer( )
Name
Attributes
Operations
Class Diagram
Representation of a Class
Page 22Classification: Restricted
UML Diagrams – Structural Diagram
Class Diagram
Page 23Classification: Restricted
UML Diagrams : Structural
Object Diagram
• Object diagrams represent an instance of a class diagram
• The purpose of the object diagram can be summarized as −
• Object relationships of a system
• Static view of an interaction.
• Understand object behaviour and their relationship from
practical perspective.
• Object diagrams are drawn in following manner:
• First, analyze the system and decide which instances have
important data and association.
• Second, consider only those instances, which will cover the
functionality.
• Third, make some optimization as the number of instances
are unlimited.
Page 24Classification: Restricted
UML Diagrams : Structural
Object Diagram
Page 25Classification: Restricted
UML Diagrams : Structural
Component Diagram
• Component diagrams are used to model the physical aspects of a
system such as files, libraries etc..
• It does not describe the functionality of the system but it describes the
components used to make those functionalities.
• Before drawing a component diagram, the following artifacts are to be
identified clearly −
• Files used in the system.
• Libraries and other artefacts relevant to the application.
• Relationships among the artefacts.
• After identifying the artefacts, the following points need to be kept in
mind.
• Use a meaningful name to identify the component for which the
diagram is to be drawn.
• Prepare a mental layout before producing the using tools.
• Use notes for clarifying important points.
Page 26Classification: Restricted
UML Diagrams : Structural
Component Diagram
Page 27Classification: Restricted
UML Diagrams : Structural
Deployment Diagram
The purpose of deployment diagrams can be described as −
• Visualize the hardware topology of a system.
• Describe the hardware components used to deploy software
components.
• Describe the runtime processing nodes.
Before drawing a deployment diagram, the following artefacts should
be identified −
• Nodes
• Relationships among nodes
Deployment diagrams can be used −
• To model the hardware topology of a system.
• To model the embedded system.
• To model the hardware details for a client/server system.
• To model the hardware details of a distributed application.
Page 28Classification: Restricted
UML Diagrams : Structural
Deployment Diagram
Page 29Classification: Restricted
UML Diagrams : Behavioral
Use Case Diagram
To model a system, the most important aspect is to capture the
dynamic behavior. Dynamic behavior means the behavior of the
system when it is running/operating.
The purposes of use case diagrams can be said to be as follows −
• Used to gather the requirements of a system.
• Used to get an outside view of a system.
• Identify the external and internal factors influencing the
system.
• Show the interaction among the requirements are actors.
When we are planning to draw a use case diagram, we should have
the following items identified.
• Functionalities to be represented as use case
• Actors
• Relationships among the use cases and act
Page 30Classification: Restricted
UML Diagrams : Behavioral
Use Case Diagram
Following guidelines to draw an efficient use case diagram
• The name of a use case is very important. The name should be
chosen in such a way so that it can identify the functionalities
performed.
• Give a suitable name for actors.
• Show relationships and dependencies clearly in the diagram.
• Do not try to include all types of relationships, as the main purpose
of the diagram is to identify the requirements.
• Use notes whenever required to clarify some important points.
** Use Case Diagrams are used to showcase the high level design of
the system.
Page 31Classification: Restricted
UML Diagrams : Behavioral
Use Case Diagram
Page 32Classification: Restricted
UML Diagrams : Behavioral
Use Case Diagram
Library System
Borrow
Order Title
Fine Remittance
Client
Employee
Supervisor
Boundary
Actor
Use Case
Page 33Classification: Restricted
UML Diagrams : Behavioral
Activity Diagram
Activity diagram is basically a flowchart to represent the flow from
one activity to another activity.
The purpose of an activity diagram can be described as −
• 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.
Before drawing an activity diagram, we should identify the
following elements −
• Activities
• Association
• Conditions
• Constraints
Page 34Classification: Restricted
UML Diagrams : Behavioral
Activity Diagram
Page 35Classification: Restricted
UML Diagrams - Behavioral
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
State Diagram
Page 36Classification: Restricted
UML Diagrams – Behavioral
State Diagram
Page 37Classification: Restricted
UML Diagrams – Behavioral
Yellow
Red
Green
Traffic Light
State
Transition
Event
Star
t
State Diagram
Page 38Classification: Restricted
UML Diagrams : Behavioral
Interaction Diagram – Sequence Diagram
This interactive behavior is represented in UML by two diagrams known
as Sequence diagram and Collaboration diagram
The purpose of interaction diagram is −
• To capture the dynamic behaviour of a system.
• To describe the message flow in the system.
• To describe the structural organization of the objects.
• To describe the interaction among objects.
Following things are to be identified clearly before drawing the interaction
diagram
• Objects taking part in the interaction.
• Message flows among the objects.
• The sequence in which the messages are flowing.
• Object organization.
Page 39Classification: Restricted
UML Diagrams : Behavioral
Interaction Diagram – Sequence Diagram
Page 40Classification: Restricted
UML Diagram - Behavioral
Caller Phone Recipient
Picks up
Dial tone
Dial
Ring notification Ring
Picks up
Hello
Interaction Diagram – Sequence Diagram
Page 41Classification: Restricted
UML Diagrams : Behavioral
Interaction Diagram – Collaboration Diagram
Method calls are similar to that of a sequence diagram. However, difference
being the sequence diagram does not describe the object organization,
whereas the collaboration diagram shows the object organization.
Page 42Classification: Restricted
UML Diagrams : Architectural
Package Diagram
Package diagram is UML structure diagram which shows packages and
dependencies between the packages.
Page 43Classification: Restricted
Thank you

More Related Content

PPT
Intermediate code generation (Compiler Design)
PDF
Deadlock
PPT
Directory and discovery services
PDF
Java variable types
PPT
Unix.system.calls
PPTX
Distributed DBMS - Unit 6 - Query Processing
DOC
Case Study Uml
PPTX
Object Oriented Programing JAVA presentaion
Intermediate code generation (Compiler Design)
Deadlock
Directory and discovery services
Java variable types
Unix.system.calls
Distributed DBMS - Unit 6 - Query Processing
Case Study Uml
Object Oriented Programing JAVA presentaion

What's hot (20)

PPTX
database recovery techniques
PPTX
Topic20 The RC4 Algorithm.pptx
PPTX
Optimistic concurrency control in Distributed Systems
PPTX
halstead software science measures
PPT
Analysis modeling
PPT
cryptography
PPTX
Structured Vs, Object Oriented Analysis and Design
PPTX
PDF
Java Design Patterns Tutorial | Edureka
PPTX
Code optimization
PPT
Np unit iii
PDF
Remote Method Invocation (RMI)
PPTX
Transposition cipher techniques
PPTX
Fundamentals of Language Processing
PPT
Network security cryptographic hash function
PPTX
Abstract Class Presentation
PDF
Peterson’s Solution.pdf by Mustehsan Mehmood
PPTX
Object oriented analysis &design - requirement analysis
PPTX
Design Goals of Distributed System
database recovery techniques
Topic20 The RC4 Algorithm.pptx
Optimistic concurrency control in Distributed Systems
halstead software science measures
Analysis modeling
cryptography
Structured Vs, Object Oriented Analysis and Design
Java Design Patterns Tutorial | Edureka
Code optimization
Np unit iii
Remote Method Invocation (RMI)
Transposition cipher techniques
Fundamentals of Language Processing
Network security cryptographic hash function
Abstract Class Presentation
Peterson’s Solution.pdf by Mustehsan Mehmood
Object oriented analysis &design - requirement analysis
Design Goals of Distributed System
Ad

Similar to UML and Case study (20)

PPSX
Unified Modeling Language - UML - Complete Guide - Part 1
PPSX
Introduction to OOA and UML
PPTX
Unified Modeling Language
PPTX
Uml.pptx
PPT
PPSX
Introduction to OOA and UML
PPSX
Introduction to OOA and UML
PPSX
Introduction to OOA and UML
PPTX
UNIT-3 Design Using UML (1).pptx
PPTX
UML Notation
PPT
Chapter 2-Unified Modeling Languagee.ppt
PPT
Chapter 2-Unified Modeling Languagee.ppt
PPTX
PDF
Software Engineering Tools and Practices.pdf
PPT
Intoduction to uml
PPSX
Introduction to OOA and UML - Part 1
PPTX
Uml with detail
PDF
Modeling software with UML
DOC
Uml overview modified
Unified Modeling Language - UML - Complete Guide - Part 1
Introduction to OOA and UML
Unified Modeling Language
Uml.pptx
Introduction to OOA and UML
Introduction to OOA and UML
Introduction to OOA and UML
UNIT-3 Design Using UML (1).pptx
UML Notation
Chapter 2-Unified Modeling Languagee.ppt
Chapter 2-Unified Modeling Languagee.ppt
Software Engineering Tools and Practices.pdf
Intoduction to uml
Introduction to OOA and UML - Part 1
Uml with detail
Modeling software with UML
Uml overview modified
Ad

More from Mihika-QA (9)

PPSX
SDLC Method Training Course
PPSX
SDLC Methodologies
PPSX
Introduction to Business Analysis
PPSX
Enterprise Analysis
PPSX
Requirement Management
PPSX
Requirement Engineering
PPSX
ER Diagrams
PPSX
Basic Formats
PPSX
Agile
SDLC Method Training Course
SDLC Methodologies
Introduction to Business Analysis
Enterprise Analysis
Requirement Management
Requirement Engineering
ER Diagrams
Basic Formats
Agile

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Machine learning based COVID-19 study performance prediction
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
KodekX | Application Modernization Development
PDF
Empathic Computing: Creating Shared Understanding
PDF
Encapsulation theory and applications.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Spectral efficient network and resource selection model in 5G networks
MIND Revenue Release Quarter 2 2025 Press Release
Machine learning based COVID-19 study performance prediction
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
KodekX | Application Modernization Development
Empathic Computing: Creating Shared Understanding
Encapsulation theory and applications.pdf
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows

UML and Case study

  • 2. Page 2Classification: Restricted Agenda • UML - Unified Modeling Language • Modeling • Why UML for Modeling • Object Oriented Concepts • Object Oriented Modeling • Basic Building blocks -UML • Overview of UML Diagrams • UML Diagrams - Basic Notations • UML Diagrams - Relationships • UML Diagrams - Structural diagram • UML Diagrams - Behavioral diagram • UML Diagrams - Architectural
  • 3. Page 3Classification: Restricted UML - Unified Modeling Language • UML (Unified Modeling Language) is a standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems. • UML is a pictorial language used to make software blueprints. • The UML uses mostly graphical notations to express the OO analysis and design of software projects. • UML can be described as the successor of object-oriented (OO) analysis and design.
  • 4. Page 4Classification: Restricted Modeling • Describing a system at a high level of abstraction – A model of the system – Used for requirements and specifications • Is it necessary to model software systems?
  • 5. Page 5Classification: 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.
  • 6. Page 6Classification: Restricted Object Oriented Concepts Following are some fundamental concepts of the object-oriented world Objects − Objects represent an entity and the basic building block. An object contains both data and methods that control the data. Class − Class is the blue print of an object. Abstraction − Abstraction represents the behaviour of an real world entity. Encapsulation − Encapsulation is the mechanism of binding the data together and hiding them from the outside world. Inheritance − Inheritance is the mechanism of making new classes from existing ones. Polymorphism − It defines the mechanism to exists in different forms.
  • 8. Page 8Classification: Restricted Basic Building blocks -UML The building blocks of UML can be defined as − • Things • Relationships • Diagrams
  • 9. Page 9Classification: Restricted Basic Building Blocks – UML ( Things) • Structural • Behavioural • Grouping • Annotation Structural : Static parts of UML models Physical and conceptual models
  • 10. Page 10Classification: Restricted Basic Building Blocks – UML ( Things) Behavioural : dynamic parts of UML models. Interaction − Interaction is defined as a behaviour that consists of a group of messages exchanged among elements to accomplish a specific task. State machine − It defines the sequence of states an object goes through in response to events. Events are external factors responsible for state change
  • 11. Page 11Classification: Restricted Basic Building Blocks–UML (Things) Grouping : Group elements of a UML model together. Package is the only one grouping thing available for gathering structural and behavioral things. Annotations : Mechanism to capture remarks, descriptions, and comments of UML model elements.
  • 12. Page 12Classification: Restricted Basic Building Blocks–UML (Relationships) Relationship reflects the association between the elements • Dependency : Change in one affects other -------------------> • Association : set of links that connects the elements of a UML model • Generalizations : Representing inheritance • Realization : Representing Interface. One element describes some responsibility, which is not implemented and the other one implements them
  • 13. Page 13Classification: Restricted Basic Building Blocks–UML (Diagrams) All the elements, relationships are used to make a complete UML diagram and the diagram represents a system.Dependency : Change in one affects other • Use Case Diagram • Class Diagram • Sequence Diagram • Activity Diagram • Collaboration Diagram • State Diagram This is only a subset of diagrams … but are most widely used
  • 14. Page 14Classification: Restricted Structural : element of spec. irrespective of time o Class o Component o Deployment o Object o Composite structure Overview of UML Diagrams Behavioral : behavioral features of a system / business process o Activity o Use case o State o Interaction o Sequence o Collaboration Architecture : Overall framework o Package
  • 15. Page 15Classification: Restricted UML Diagrams : Basic Notations Class Notation Object Notation Interface Notation Collaboration Notation Actor
  • 16. Page 16Classification: Restricted UML Diagrams : Basic Notations Initial state Node Notation Package Notation Note Notation Final state
  • 17. Page 17Classification: Restricted UML Diagrams - Relationships • There are two kinds of Relationships • Generalization (parent-child relationship) • Association (student enrolls in course) • Associations can be further classified as • Aggregation • Composition
  • 18. Page 18Classification: Restricted UML Diagrams - Structural Diagram Class Diagram • Used to model the static view of an application. • Describing responsibilities of a system • Provide a conceptual model of the system in terms of entities and their relationships • Used for requirement capture, end-user interaction • Base for component and deployment diagrams
  • 19. Page 19Classification: Restricted UML Diagrams – Structural 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. Class Diagram
  • 20. Page 20Classification: Restricted UML Diagrams – Structural Diagram • 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. Class Diagram
  • 21. Page 21Classification: Restricted UML Diagrams – Structural Diagrams Account_Name - Customer_Name - Balance +addFunds( ) +withDraw( ) +transfer( ) Name Attributes Operations Class Diagram Representation of a Class
  • 22. Page 22Classification: Restricted UML Diagrams – Structural Diagram Class Diagram
  • 23. Page 23Classification: Restricted UML Diagrams : Structural Object Diagram • Object diagrams represent an instance of a class diagram • The purpose of the object diagram can be summarized as − • Object relationships of a system • Static view of an interaction. • Understand object behaviour and their relationship from practical perspective. • Object diagrams are drawn in following manner: • First, analyze the system and decide which instances have important data and association. • Second, consider only those instances, which will cover the functionality. • Third, make some optimization as the number of instances are unlimited.
  • 24. Page 24Classification: Restricted UML Diagrams : Structural Object Diagram
  • 25. Page 25Classification: Restricted UML Diagrams : Structural Component Diagram • Component diagrams are used to model the physical aspects of a system such as files, libraries etc.. • It does not describe the functionality of the system but it describes the components used to make those functionalities. • Before drawing a component diagram, the following artifacts are to be identified clearly − • Files used in the system. • Libraries and other artefacts relevant to the application. • Relationships among the artefacts. • After identifying the artefacts, the following points need to be kept in mind. • Use a meaningful name to identify the component for which the diagram is to be drawn. • Prepare a mental layout before producing the using tools. • Use notes for clarifying important points.
  • 26. Page 26Classification: Restricted UML Diagrams : Structural Component Diagram
  • 27. Page 27Classification: Restricted UML Diagrams : Structural Deployment Diagram The purpose of deployment diagrams can be described as − • Visualize the hardware topology of a system. • Describe the hardware components used to deploy software components. • Describe the runtime processing nodes. Before drawing a deployment diagram, the following artefacts should be identified − • Nodes • Relationships among nodes Deployment diagrams can be used − • To model the hardware topology of a system. • To model the embedded system. • To model the hardware details for a client/server system. • To model the hardware details of a distributed application.
  • 28. Page 28Classification: Restricted UML Diagrams : Structural Deployment Diagram
  • 29. Page 29Classification: Restricted UML Diagrams : Behavioral Use Case Diagram To model a system, the most important aspect is to capture the dynamic behavior. Dynamic behavior means the behavior of the system when it is running/operating. The purposes of use case diagrams can be said to be as follows − • Used to gather the requirements of a system. • Used to get an outside view of a system. • Identify the external and internal factors influencing the system. • Show the interaction among the requirements are actors. When we are planning to draw a use case diagram, we should have the following items identified. • Functionalities to be represented as use case • Actors • Relationships among the use cases and act
  • 30. Page 30Classification: Restricted UML Diagrams : Behavioral Use Case Diagram Following guidelines to draw an efficient use case diagram • The name of a use case is very important. The name should be chosen in such a way so that it can identify the functionalities performed. • Give a suitable name for actors. • Show relationships and dependencies clearly in the diagram. • Do not try to include all types of relationships, as the main purpose of the diagram is to identify the requirements. • Use notes whenever required to clarify some important points. ** Use Case Diagrams are used to showcase the high level design of the system.
  • 31. Page 31Classification: Restricted UML Diagrams : Behavioral Use Case Diagram
  • 32. Page 32Classification: Restricted UML Diagrams : Behavioral Use Case Diagram Library System Borrow Order Title Fine Remittance Client Employee Supervisor Boundary Actor Use Case
  • 33. Page 33Classification: Restricted UML Diagrams : Behavioral Activity Diagram Activity diagram is basically a flowchart to represent the flow from one activity to another activity. The purpose of an activity diagram can be described as − • 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. Before drawing an activity diagram, we should identify the following elements − • Activities • Association • Conditions • Constraints
  • 34. Page 34Classification: Restricted UML Diagrams : Behavioral Activity Diagram
  • 35. Page 35Classification: Restricted UML Diagrams - Behavioral 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 State Diagram
  • 36. Page 36Classification: Restricted UML Diagrams – Behavioral State Diagram
  • 37. Page 37Classification: Restricted UML Diagrams – Behavioral Yellow Red Green Traffic Light State Transition Event Star t State Diagram
  • 38. Page 38Classification: Restricted UML Diagrams : Behavioral Interaction Diagram – Sequence Diagram This interactive behavior is represented in UML by two diagrams known as Sequence diagram and Collaboration diagram The purpose of interaction diagram is − • To capture the dynamic behaviour of a system. • To describe the message flow in the system. • To describe the structural organization of the objects. • To describe the interaction among objects. Following things are to be identified clearly before drawing the interaction diagram • Objects taking part in the interaction. • Message flows among the objects. • The sequence in which the messages are flowing. • Object organization.
  • 39. Page 39Classification: Restricted UML Diagrams : Behavioral Interaction Diagram – Sequence Diagram
  • 40. Page 40Classification: Restricted UML Diagram - Behavioral Caller Phone Recipient Picks up Dial tone Dial Ring notification Ring Picks up Hello Interaction Diagram – Sequence Diagram
  • 41. Page 41Classification: Restricted UML Diagrams : Behavioral Interaction Diagram – Collaboration Diagram Method calls are similar to that of a sequence diagram. However, difference being the sequence diagram does not describe the object organization, whereas the collaboration diagram shows the object organization.
  • 42. Page 42Classification: Restricted UML Diagrams : Architectural Package Diagram Package diagram is UML structure diagram which shows packages and dependencies between the packages.