SlideShare a Scribd company logo
1 of 62
UNIT III DYNAMIC AND
IMPLEMENTATION UML DIAGRAMS
KONGUNADU COLLEGE OF
ENGINEERING AND TECHNOLOGY
(AUTONOMOUS)
UNIT III DYNAMIC AND
IMPLEMENTATION UML
DIAGRAMS
Dynamic Diagrams – UML interaction diagrams - System
sequence diagram – Collaboration diagram – When to use
Communication Diagrams - State machine diagram and
Modelling –When to use State Diagrams - Activity diagram –
When to use activity diagrams
Implementation Diagrams - UML package diagram - When to
use package diagrams - Component and Deployment
Diagrams – When to use Component and Deployment
diagrams
Class diagrams
Class diagrams
Use Case diagrams
Aggregation and composition
Interaction diagrams
Developing interaction diagram is simplicity
It has lose clarity
Interaction diagrams commonly contain Objects, Links, Messages
There are two kinds of interaction diagrams –
1. Sequence Diagrams
2. Collaboration Diagrams
1. Sequence diagram
Sequence diagrams illustrate the sequence of actions that occur
in a system
Object shown as a box at the top of dashed vertical line
Vertical line is called objects life line.
Sequence diagram
2. Collaboration diagram
The set of messages exchanged among the objects to achieve an
operation or result.
Objects drawn as rectangles
Links between objects shown as lines connecting the linked
objects
Collaboration diagram indicated by several numbering schemes
are available
1.Simple numbering
2.Decimal numbering
EX: Messages shown as text and an arrow that points from the
client to the supplier.
Collaboration diagram
State Machine Diagrams and Modelling
State machine diagrams are also called as state chart diagrams.
It is used to capture the behavior of a software system.
UML State machine diagrams can be used to model the behavior
of a class, a subsystem, a package, or even an entire system
States
A state is denoted by a round-cornered rectangle with the name of
the state written inside it.
State Machine Diagrams and Modelling
Initial and Final States
The initial state is denoted by a filled black circle and may be
labeled with a name.
The final state is denoted by a circle with a dot inside and may
also be labeled with a name
Transitions
Transitions from one state to the next are denoted by lines with
arrowheads. A transition may have a trigger, a guard and an
effect, as below
Concurrent State Diagram
The associated states and the cancelled states are combined on a
concurrent state diagram.
Activity diagram
Activity diagram is basically a flowchart to represent the flow from
one activity to another activity.
The activity can be described as an operation of the system
The control flow is drawn from one operation to another
Activity diagrams commonly contain
Activity states and action states
Transitions
Objects
Activity Diagrams
Notation 1
1. Activities
2. Transition
Activity1()c Activity2()
Notation 2
Synch. Bar (Join) Splitting Bar (Fork)
Notation 3
Start Marker Stop Marker
Transitions
When the action or activity of a state completes, flow of control
passes immediately to the next action or activity state
A flow of control has to start and end someplace
initial state -- a solid ball
stop state -- a solid ball inside a circle
Example for action and Transitions
Branching
A branch specifies alternate paths taken based on some Boolean
expression
A branch may have one incoming transition and two or more
outgoing ones
Branching
Activity Diagram: Example
Forking and Joining
Use a synchronization bar to specify the forking and joining of
parallel flows of control
A synchronization bar is rendered as a thick horizontal or vertical
line
Fork
• A fork may have one incoming transitions and two or more
outgoing transitions
–each transition represents an flow of control
–the activities of each of outgoing transitions are (multiple
state) or (state node)
Join
• A join may have two or more incoming transitions and one
outgoing transition
–the join activities associated with each of these paths
continues in parallel
–at the join, the flows are waits until all incoming flows have
reached the join
Examples
Data flow model
• A data flow model is diagrammatic representation of the flow and
exchange of information within a system.
• It can help for
1. Understand the complete process
2. Identify the critical stages of a process.
3. Locate problem areas
4. Show relationships between different steps in a process
• A data flow model may also be known as a data flow diagram (DFD)
Notations of DFD
External Entity
Data Flow
Process
Data Store
Data Flow Diagrams
Data Flows
Goods
Customer Details
Data Flow (usual)
Bi-directional Flow (rare)
Flow Between External Entities
(for convenience)
Resource Flow (for convenience)
Data Flow Diagram (DFD)
• Key points for modeling
– How data moves through the organization
– Relationships between various data flows
– Storage of data
• There are no FIXED rules about how a DFD should be developed…
Data Flow Diagram (DFD)
Package diagram
• Package diagrams are used to structure high level system
elements (client, bank)
• Packages are used for organizing large system which
contains diagrams, documents and other key deliverables.
• Package Diagram can be used to simplify complex
class diagrams, it can group classes into packages
• Package name should not be the same for a system, however
classes inside different packages could have the same name.
Cont..
Packages can include whole diagrams, name of components
alone or no components at all.
Packages appear as rectangles with small tabs at the top.
The package name is on the tab or inside the rectangle.
The dotted arrows are dependencies.
One package depends on another package
Cont..
Package – a grouping of classes
Classes have dependencies for several reasons, including:
One class sends a message to another
One class has another as part of its data
One class mentions another as a parameter to an operation
Package Diagrams - Notation
 Package – contains classes
 Dependency – changes to the
definition (interface) of one package
may cause changes in the other
package
Cont..
Fully qualified name of a package has the following syntax
Visibility
 There are two types public or private visibility.
 The visibility of a package element may be indicated by preceding
the name of the element by a visibility symbol ("+" for public and "-
" for private).
Examples
Stereotypes
<<import>> - one package imports the functionality of other
package
Stereotypes
<<access>> one package requires help from functions of other
package
Package diagrams can be useful in many ways, such as
To create an overview of a large set of model elements
To organize a large model
To group related elements
To separate the particular type of items
(eg: bank data)
Examples of package
When to use a Package Diagram
When the application is very large
Usually done in the design phase of a project
Component Diagram
 Shows a set of components and their relationships.
 Represents the static implementation view of a system.
 Components map to one or more classes, interfaces
classes
loanOfficer.dll component
LoanOfficer
LoanPolicy
CreditSearch
Registrar.exe
Course.dll
Student.dll
Components and their Relationships
Mapping of Components into Classes
Component Diagram
Shows various components in a system and their
interfaces
Explains the structure of a system
Usually a physical collection of classes
Similar to a Package Diagram in that both are
used to group elements into structures
Component Diagram Notation
Shows various components in a system and their
interfaces
Explains the structure of a system
Usually a physical collection of classes
Similar to a Package Diagram in that both are
used to group elements into structures
Component Diagram Notation
Components are shown as rectangles with two tabs at the
upper left
Dashed arrows indicate dependencies
Circle and solid line indicates an interface to the
component
54
Component Diagram – another example
55
Component Diagram – another example
Deployment Diagrams
What is a Deployment Diagram?
Deployment Diagrams – Notation and Example
What is a Deployment Diagram?
Deployment Diagram – a diagram that shows the physical
relationships among software and hardware components in a
system
Components – physical modules of code
Connections – show communication paths
Dependencies – show how components communicate with
other components
Nodes -usually a pieces of hardware
Deployment diagram symbols and notation
Nodes – There are two type of node
1. Device node -computing resources
Ex: laptops, and mobile phones.
2.Execution environment nodes
Operating system, or another servlet container.
Cont..
Data base- Databases represent any data stored by the deployed
system
Deployment Diagrams – Notation and Example

More Related Content

Similar to Unit III Dynamic and Implementation UML Diagrams.pptx

Similar to Unit III Dynamic and Implementation UML Diagrams.pptx (20)

Uml
UmlUml
Uml
 
Selab1 slides
Selab1 slidesSelab1 slides
Selab1 slides
 
CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3CS8592-OOAD Lecture Notes Unit-3
CS8592-OOAD Lecture Notes Unit-3
 
INTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMSINTRODUCTION TO UML DIAGRAMS
INTRODUCTION TO UML DIAGRAMS
 
Uml
UmlUml
Uml
 
R1x g02 enterprise architecture i
R1x g02 enterprise architecture iR1x g02 enterprise architecture i
R1x g02 enterprise architecture i
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
432
432432
432
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
Intro to UML 2
Intro to UML 2Intro to UML 2
Intro to UML 2
 
Uml
UmlUml
Uml
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
Activity Diagram part8
Activity Diagram part8Activity Diagram part8
Activity Diagram part8
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 
Uml
UmlUml
Uml
 
Intro Uml
Intro UmlIntro Uml
Intro Uml
 
Uml
UmlUml
Uml
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Chapter7
Chapter7Chapter7
Chapter7
 
Cs8592 ooad unit 1
Cs8592 ooad unit 1Cs8592 ooad unit 1
Cs8592 ooad unit 1
 

Recently uploaded

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 

Unit III Dynamic and Implementation UML Diagrams.pptx

  • 1. UNIT III DYNAMIC AND IMPLEMENTATION UML DIAGRAMS KONGUNADU COLLEGE OF ENGINEERING AND TECHNOLOGY (AUTONOMOUS)
  • 2. UNIT III DYNAMIC AND IMPLEMENTATION UML DIAGRAMS Dynamic Diagrams – UML interaction diagrams - System sequence diagram – Collaboration diagram – When to use Communication Diagrams - State machine diagram and Modelling –When to use State Diagrams - Activity diagram – When to use activity diagrams Implementation Diagrams - UML package diagram - When to use package diagrams - Component and Deployment Diagrams – When to use Component and Deployment diagrams
  • 7. Interaction diagrams Developing interaction diagram is simplicity It has lose clarity Interaction diagrams commonly contain Objects, Links, Messages There are two kinds of interaction diagrams – 1. Sequence Diagrams 2. Collaboration Diagrams
  • 8. 1. Sequence diagram Sequence diagrams illustrate the sequence of actions that occur in a system Object shown as a box at the top of dashed vertical line Vertical line is called objects life line.
  • 10.
  • 11. 2. Collaboration diagram The set of messages exchanged among the objects to achieve an operation or result. Objects drawn as rectangles Links between objects shown as lines connecting the linked objects Collaboration diagram indicated by several numbering schemes are available 1.Simple numbering 2.Decimal numbering
  • 12. EX: Messages shown as text and an arrow that points from the client to the supplier.
  • 14. State Machine Diagrams and Modelling State machine diagrams are also called as state chart diagrams. It is used to capture the behavior of a software system. UML State machine diagrams can be used to model the behavior of a class, a subsystem, a package, or even an entire system States A state is denoted by a round-cornered rectangle with the name of the state written inside it.
  • 15. State Machine Diagrams and Modelling
  • 16. Initial and Final States The initial state is denoted by a filled black circle and may be labeled with a name. The final state is denoted by a circle with a dot inside and may also be labeled with a name
  • 17. Transitions Transitions from one state to the next are denoted by lines with arrowheads. A transition may have a trigger, a guard and an effect, as below
  • 18. Concurrent State Diagram The associated states and the cancelled states are combined on a concurrent state diagram.
  • 19. Activity diagram Activity diagram is basically a flowchart to represent the flow from one activity to another activity. The activity can be described as an operation of the system The control flow is drawn from one operation to another
  • 20. Activity diagrams commonly contain Activity states and action states Transitions Objects Activity Diagrams
  • 21. Notation 1 1. Activities 2. Transition Activity1()c Activity2() Notation 2 Synch. Bar (Join) Splitting Bar (Fork) Notation 3 Start Marker Stop Marker
  • 22. Transitions When the action or activity of a state completes, flow of control passes immediately to the next action or activity state A flow of control has to start and end someplace initial state -- a solid ball stop state -- a solid ball inside a circle
  • 23. Example for action and Transitions
  • 24. Branching A branch specifies alternate paths taken based on some Boolean expression A branch may have one incoming transition and two or more outgoing ones
  • 27. Forking and Joining Use a synchronization bar to specify the forking and joining of parallel flows of control A synchronization bar is rendered as a thick horizontal or vertical line
  • 28. Fork • A fork may have one incoming transitions and two or more outgoing transitions –each transition represents an flow of control –the activities of each of outgoing transitions are (multiple state) or (state node)
  • 29. Join • A join may have two or more incoming transitions and one outgoing transition –the join activities associated with each of these paths continues in parallel –at the join, the flows are waits until all incoming flows have reached the join
  • 31.
  • 32. Data flow model • A data flow model is diagrammatic representation of the flow and exchange of information within a system. • It can help for 1. Understand the complete process 2. Identify the critical stages of a process. 3. Locate problem areas 4. Show relationships between different steps in a process • A data flow model may also be known as a data flow diagram (DFD)
  • 33. Notations of DFD External Entity Data Flow Process Data Store
  • 34. Data Flow Diagrams Data Flows Goods Customer Details Data Flow (usual) Bi-directional Flow (rare) Flow Between External Entities (for convenience) Resource Flow (for convenience)
  • 35. Data Flow Diagram (DFD) • Key points for modeling – How data moves through the organization – Relationships between various data flows – Storage of data • There are no FIXED rules about how a DFD should be developed…
  • 37. Package diagram • Package diagrams are used to structure high level system elements (client, bank) • Packages are used for organizing large system which contains diagrams, documents and other key deliverables. • Package Diagram can be used to simplify complex class diagrams, it can group classes into packages • Package name should not be the same for a system, however classes inside different packages could have the same name.
  • 38. Cont.. Packages can include whole diagrams, name of components alone or no components at all. Packages appear as rectangles with small tabs at the top. The package name is on the tab or inside the rectangle. The dotted arrows are dependencies. One package depends on another package
  • 39. Cont.. Package – a grouping of classes Classes have dependencies for several reasons, including: One class sends a message to another One class has another as part of its data One class mentions another as a parameter to an operation
  • 40. Package Diagrams - Notation  Package – contains classes  Dependency – changes to the definition (interface) of one package may cause changes in the other package
  • 41.
  • 42. Cont.. Fully qualified name of a package has the following syntax
  • 43. Visibility  There are two types public or private visibility.  The visibility of a package element may be indicated by preceding the name of the element by a visibility symbol ("+" for public and "- " for private).
  • 45. Stereotypes <<import>> - one package imports the functionality of other package
  • 46. Stereotypes <<access>> one package requires help from functions of other package
  • 47. Package diagrams can be useful in many ways, such as To create an overview of a large set of model elements To organize a large model To group related elements To separate the particular type of items (eg: bank data)
  • 49. When to use a Package Diagram When the application is very large Usually done in the design phase of a project
  • 50. Component Diagram  Shows a set of components and their relationships.  Represents the static implementation view of a system.  Components map to one or more classes, interfaces classes loanOfficer.dll component LoanOfficer LoanPolicy CreditSearch Registrar.exe Course.dll Student.dll Components and their Relationships Mapping of Components into Classes
  • 51. Component Diagram Shows various components in a system and their interfaces Explains the structure of a system Usually a physical collection of classes Similar to a Package Diagram in that both are used to group elements into structures
  • 52. Component Diagram Notation Shows various components in a system and their interfaces Explains the structure of a system Usually a physical collection of classes Similar to a Package Diagram in that both are used to group elements into structures
  • 53. Component Diagram Notation Components are shown as rectangles with two tabs at the upper left Dashed arrows indicate dependencies Circle and solid line indicates an interface to the component
  • 54. 54 Component Diagram – another example
  • 55. 55 Component Diagram – another example
  • 56. Deployment Diagrams What is a Deployment Diagram? Deployment Diagrams – Notation and Example
  • 57. What is a Deployment Diagram? Deployment Diagram – a diagram that shows the physical relationships among software and hardware components in a system Components – physical modules of code Connections – show communication paths Dependencies – show how components communicate with other components Nodes -usually a pieces of hardware
  • 58. Deployment diagram symbols and notation Nodes – There are two type of node 1. Device node -computing resources Ex: laptops, and mobile phones. 2.Execution environment nodes Operating system, or another servlet container.
  • 59. Cont.. Data base- Databases represent any data stored by the deployed system
  • 60.
  • 61.
  • 62. Deployment Diagrams – Notation and Example