SlideShare a Scribd company logo
Session 7 Dynamic Model
Review Use Cases bring out the users of the system Use Case Diagrams help to define the roles of actors The services and interaction between users is described using Use Case Diagrams Very often these are the first diagrams to be drawn while modeling a system
Objectives Discuss state diagram Explain  sequence diagram Work with  collaboration diagram and activity diagram Explain the definitions of dynamic diagrams in UML
Message and Message Notations Message is drawn as a line with an arrow between sender and receiver of the message.  The arrowhead indicates the type of the message sent
State Diagram   State diagrams are one set of diagrams which helps to draw the dynamics of a system The  state of an object  at any point in time is the condition of the object at that instant State of the object  is defined by all the attributes of the object and the links maintained by it
State and Transition The process of change in state is called  state transition   Transitions are typically the result of the invocation of an operation that causes an important change in state  An action is something, in the case of a class it is an operation, which is invoked by/on the entity being modeled
Sub-state-1 The state of an object can have sub-states in it  A sub state is a part of the composite state  Sub States can be concurrent or sequential
Sub-state-2
Use state diagram
Sequence Diagram   Illustrate interaction between objects; that is the messages sent and received between the objects  Have two axes Vertical axis shows the time, where as the horizontal axis shows a set of objects
General Sequence Diagram-1   Events are depicted by horizontal lines Objects by Vertical Lines Time is depicted vertically starting from top. This means that the events should be depicted in the order in which they occur from top to bottom.
General Sequence Diagram-2  :  Customer :  Interface : Vendor Input Coin Verify Coin Reject Faulty Coin with Message Send Genuine Coin Vend Tea
Recursion   Repetition of the same activity again and again until a condition is met While showing recursion the event arrow comes back to the same object from where it started
Use Sequence Diagram
Collaboration Diagram-1   Describes interaction between objects just like the Sequence diagram but unlike the Sequence diagram the primary focus is on events Objects are shown using the Class icon Sequence in Collaboration diagram is shown by numbering the messages Better for understanding all the effects on a given object and for procedural design
Collaboration Diagram-2
Activity Diagram-1   To capture action (work) when the operation is executing.  This is the most common usage. To describe how interactions between related objects take place To describe a Use-Case’s performance in terms of actions and object state changes. To capture internal process of an object To describe the functional flow of the system in terms of objects
Activity Diagram-2
Activity Diagram-3
Activity diagram Concurrency   Concurrency paths run at the same time and then join below The split and merge are represented as solid horizontal lines
Signal-1 Signals Indicate input and output events   The symbol for sending a signal is a convex  pentagon.  The symbol for receiving a signal is a concave pentagon.  Sending  a signal Receiving a signal
Signal-2
Swimlanes
Use Activity Diagram
Summary State diagrams depict the dynamics of a system State diagrams can have concurrent or sequential sub states Sequence diagrams depict the interaction amongst objects. They might contain recursion. Interaction between objects is shown using Collaboration Diagram Activity Diagrams capture the activities and their results Swimlanes simplify the activity diagram and help in understanding the distribution of activities amongst the objects

More Related Content

PDF
Sequence diagrams
PDF
State chart diagram
PPTX
Sequence diagrame
PDF
Interaction overview & Timing diagram
PDF
Lecture6 activity diagrams
PPTX
behavioral model (DFD & state diagram)
PPTX
Activity diagram model
Sequence diagrams
State chart diagram
Sequence diagrame
Interaction overview & Timing diagram
Lecture6 activity diagrams
behavioral model (DFD & state diagram)
Activity diagram model

What's hot (20)

PPT
Seminar State Chart1
PPTX
Communication diagram Introduction
PPTX
Behaviour modelling
PPT
Uml Activity Diagram
PPT
08 state diagram and activity diagram
PPT
Slide 4 Interaction Diagram
PPTX
Sequence diagram
PPT
5.state diagrams
 
PPTX
Activity diagram
PPTX
Interaction Modeling
PPTX
Diagrams
PPT
07 interaction diagrams
PPT
Activity diagrams
PPTX
SAD09 - Activity Diagrams
PPT
Uml sequence diagrams
PPTX
UML - activity diagram tutorial
PPT
State Diagrams
PDF
Object diagram
PDF
Activity diag
PPTX
4 activity diagrams
Seminar State Chart1
Communication diagram Introduction
Behaviour modelling
Uml Activity Diagram
08 state diagram and activity diagram
Slide 4 Interaction Diagram
Sequence diagram
5.state diagrams
 
Activity diagram
Interaction Modeling
Diagrams
07 interaction diagrams
Activity diagrams
SAD09 - Activity Diagrams
Uml sequence diagrams
UML - activity diagram tutorial
State Diagrams
Object diagram
Activity diag
4 activity diagrams
Ad

Viewers also liked (20)

PDF
fortigate
PPT
A global picture of drought occurrence, magnitude, and preparedness
PPT
1948 Arab–Israeli
PPTX
Topic 1 intro power and ideas
PPT
Meloni
PDF
27 NP Completness
PPTX
Topic.09 The Civil Rights Movement
PDF
The Social Corporate Revolution
PPT
Golda Meir And Arab Israeli Relations 35 Years After[1]
PPT
Red Star Over China (Speaker: Vincent Lee Kwun-leung) [Part 2]
PDF
The Arab Spring: A simple compartmental model for the dynamics of a revolution
PPTX
Conflicts in Egypt-2
PPT
On The Day the Last Nuclear Weapon is Destroyed
PDF
Arab israeli klaus 1
DOC
Heroines And Heroes Of Sindh Long March
PPT
The Invention of Nuclear Weapons
PPT
M01 Oo Intro
PPTX
US in the Middle East Part 2
PPTX
Nuclear power plant
PPTX
D3 (drought management and risk reduction in pakistan) brig. kamran shariff
fortigate
A global picture of drought occurrence, magnitude, and preparedness
1948 Arab–Israeli
Topic 1 intro power and ideas
Meloni
27 NP Completness
Topic.09 The Civil Rights Movement
The Social Corporate Revolution
Golda Meir And Arab Israeli Relations 35 Years After[1]
Red Star Over China (Speaker: Vincent Lee Kwun-leung) [Part 2]
The Arab Spring: A simple compartmental model for the dynamics of a revolution
Conflicts in Egypt-2
On The Day the Last Nuclear Weapon is Destroyed
Arab israeli klaus 1
Heroines And Heroes Of Sindh Long March
The Invention of Nuclear Weapons
M01 Oo Intro
US in the Middle East Part 2
Nuclear power plant
D3 (drought management and risk reduction in pakistan) brig. kamran shariff
Ad

Similar to Chapter7 (20)

PDF
CS8592-OOAD Lecture Notes Unit-3
PPT
4 Activity & Statechart diagram.ppt4 Activity & Statechart diagram.ppt4 Activ...
PPT
OOADPPT Lecture 5 The OOAD Presentation.pptx
PPT
vu-re-lecture-39 dynamic model of banking.ppt
DOCX
Case tool lab-Reg2013 by Karthick Raja
PPTX
08.Sequence Diagrams.pptx in cS to describe
DOC
Case Study Uml
PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
PPT
Jar chapter 4, part 1
PDF
SE_Lec 09_ UML Behaviour Diagrams
PPTX
An introduction to uml
PPT
Lecture#03, uml diagrams
PPTX
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
PDF
Object-Oriented Analysis and Design report
PPT
Uml diagrams
DOC
Uml overview modified
PPT
Uml diagrams
PPTX
UML.pptx
PPTX
The Unified Language Modeling from APSI Course
PDF
INTRODUCTION TO UML DIAGRAMS
CS8592-OOAD Lecture Notes Unit-3
4 Activity & Statechart diagram.ppt4 Activity & Statechart diagram.ppt4 Activ...
OOADPPT Lecture 5 The OOAD Presentation.pptx
vu-re-lecture-39 dynamic model of banking.ppt
Case tool lab-Reg2013 by Karthick Raja
08.Sequence Diagrams.pptx in cS to describe
Case Study Uml
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
Jar chapter 4, part 1
SE_Lec 09_ UML Behaviour Diagrams
An introduction to uml
Lecture#03, uml diagrams
unit-3-Interactions&Usecases.pptxunit-3-Interactions&Usecases.pptx
Object-Oriented Analysis and Design report
Uml diagrams
Uml overview modified
Uml diagrams
UML.pptx
The Unified Language Modeling from APSI Course
INTRODUCTION TO UML DIAGRAMS

More from Dang Tuan (20)

PDF
Javascript for php developer
PDF
Power your web skills
PDF
Ube Databases
PPT
Chapter1
PPT
Chapter9
PPT
Chapter3
PPT
Chapter5
PPT
Session02 Part Ii
PPT
PHÂN TÍCH VÀ THIẾT KẾ HỆ THỐNG DÙNG UML
PPT
Ooad Uml
PPT
M02 Uml Overview
PPT
UML for OOAD
PPT
Object-Oriented Analysis & Design (OOAD) Domain Modeling Introduction
PPT
Introduction to Modeling Java and UML
PPT
Information Systems Analysis and Design Overview of OOAD, UML, and RUP
PPT
Ooad Overview
PPT
M03 2 Behavioral Diagrams
PPT
M05 Metamodel
PPT
M04 Design Patterns
PPT
M03 1 Structuraldiagrams
Javascript for php developer
Power your web skills
Ube Databases
Chapter1
Chapter9
Chapter3
Chapter5
Session02 Part Ii
PHÂN TÍCH VÀ THIẾT KẾ HỆ THỐNG DÙNG UML
Ooad Uml
M02 Uml Overview
UML for OOAD
Object-Oriented Analysis & Design (OOAD) Domain Modeling Introduction
Introduction to Modeling Java and UML
Information Systems Analysis and Design Overview of OOAD, UML, and RUP
Ooad Overview
M03 2 Behavioral Diagrams
M05 Metamodel
M04 Design Patterns
M03 1 Structuraldiagrams

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Electronic commerce courselecture one. Pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Big Data Technologies - Introduction.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Spectroscopy.pptx food analysis technology
Electronic commerce courselecture one. Pdf
sap open course for s4hana steps from ECC to s4
Big Data Technologies - Introduction.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
Digital-Transformation-Roadmap-for-Companies.pptx
Approach and Philosophy of On baking technology
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Advanced methodologies resolving dimensionality complications for autism neur...

Chapter7

  • 2. Review Use Cases bring out the users of the system Use Case Diagrams help to define the roles of actors The services and interaction between users is described using Use Case Diagrams Very often these are the first diagrams to be drawn while modeling a system
  • 3. Objectives Discuss state diagram Explain sequence diagram Work with collaboration diagram and activity diagram Explain the definitions of dynamic diagrams in UML
  • 4. Message and Message Notations Message is drawn as a line with an arrow between sender and receiver of the message. The arrowhead indicates the type of the message sent
  • 5. State Diagram State diagrams are one set of diagrams which helps to draw the dynamics of a system The state of an object at any point in time is the condition of the object at that instant State of the object is defined by all the attributes of the object and the links maintained by it
  • 6. State and Transition The process of change in state is called state transition Transitions are typically the result of the invocation of an operation that causes an important change in state An action is something, in the case of a class it is an operation, which is invoked by/on the entity being modeled
  • 7. Sub-state-1 The state of an object can have sub-states in it A sub state is a part of the composite state Sub States can be concurrent or sequential
  • 10. Sequence Diagram Illustrate interaction between objects; that is the messages sent and received between the objects Have two axes Vertical axis shows the time, where as the horizontal axis shows a set of objects
  • 11. General Sequence Diagram-1 Events are depicted by horizontal lines Objects by Vertical Lines Time is depicted vertically starting from top. This means that the events should be depicted in the order in which they occur from top to bottom.
  • 12. General Sequence Diagram-2 : Customer : Interface : Vendor Input Coin Verify Coin Reject Faulty Coin with Message Send Genuine Coin Vend Tea
  • 13. Recursion Repetition of the same activity again and again until a condition is met While showing recursion the event arrow comes back to the same object from where it started
  • 15. Collaboration Diagram-1 Describes interaction between objects just like the Sequence diagram but unlike the Sequence diagram the primary focus is on events Objects are shown using the Class icon Sequence in Collaboration diagram is shown by numbering the messages Better for understanding all the effects on a given object and for procedural design
  • 17. Activity Diagram-1 To capture action (work) when the operation is executing. This is the most common usage. To describe how interactions between related objects take place To describe a Use-Case’s performance in terms of actions and object state changes. To capture internal process of an object To describe the functional flow of the system in terms of objects
  • 20. Activity diagram Concurrency Concurrency paths run at the same time and then join below The split and merge are represented as solid horizontal lines
  • 21. Signal-1 Signals Indicate input and output events The symbol for sending a signal is a convex pentagon. The symbol for receiving a signal is a concave pentagon. Sending a signal Receiving a signal
  • 25. Summary State diagrams depict the dynamics of a system State diagrams can have concurrent or sequential sub states Sequence diagrams depict the interaction amongst objects. They might contain recursion. Interaction between objects is shown using Collaboration Diagram Activity Diagrams capture the activities and their results Swimlanes simplify the activity diagram and help in understanding the distribution of activities amongst the objects