SlideShare a Scribd company logo
Sequence
Diagram
Systems Analysis and Design
Introduction to Sequence
diagram
Sequence diagram is interaction diagram that shows the set of
objects and messages send and receive by those object.
It mainly emphases on time ordering and messages.
It is used to illustrate the dynamic view of system.
These are also called as “Isomorphic diagram”.
Terms and Concepts
Objects or Participants :-
 The sequence diagram is made up of collection of participants or
objects. Participants are system parts that interact each other during
sequence diagram.
 The participants interact with each other by sending and receiving
message
 The object is represented by as below:
Object:Class_Name
Terms and Concepts
Lifeline:-
 Lifeline represents the existence of an object over a period of
time.
 It is represented by vertical dashed line.
 Most objects that appeared in ‘Interaction diagram’ will be in
existence for the duration of an interaction. So, these objects
are aligned at top at top of diagram with their lifeline from top
to bottom of diagram.
Terms and Concepts
Activation bar:-
 It is also called as focus of control. It shows the period of time
during which an object is performing an action.
 The top of rectangle is aligned with start of the action. The bottom is
aligned with its completion and can be marked by a written
message
 It is represented by tall thin rectangle:
Terms and Concepts
Messages:-
 The interaction in a sequence diagram between the objects can be
shown by using messages.
 The messages on sequence diagram are specifies using an arrow
from participant that wants to pass the messages to the participant
that receive the messages .
 Messages can be flow in whatever direction required for interaction
from left to right and right to left.
Terms and Concepts
Messages:-
 It has following kinds of messages:
1)Synchronous messages:-
* It is a message where the sender is blocked and waits until
the receiver has finished processing of message.
* It is invoked the caller waits for the receiver to return from
the message invocation.
* It is represented by solid line with full arrow.
2)Asynchronous messages:-
* It is a messages where the sender is not blocked and can continue executing.
* It is represent by solid line with half arrow.
Terms and Concepts
Messages:-
 It has following kinds of messages:
3)Reflexive messages:-
* If the object sends the message to itself then it is called as ‘Reflexive message.
* It is represented by solid line with loops the lifeline of object.
4)Return messages:-
* It can be used at the end of activation bar to show that control flow of activation
returns to the participant that pass the original message.
* It is represent by dashed line from sender to receiver.
Terms and Concepts
 It has following kinds of messages:
5)Create messages:-
* It is used to create object during interaction.
* The object can be created by using <<create>> to indicate the timing of creation.
* Creating message can be shown as below:
6)Destroy messages:-
* It is used to destroy the objects during interaction.
* The objects can be terminated using <<destroy>> which points to an “x”.
* It indicates that object named message is terminated.
Terms and Concepts
Time:-
 The sequence diagram describes the order in which interaction takes place.
 So time in an important factor. The time on sequence diagram starts at top of the
page just below the object and then progress down the page.
 Time is all about ordering but not duration.
Terms and Concepts
Event:-
 It can be referred as smallest part of an interaction and event can occur of at any given
point in a Time.
 When interaction take place, Events are called as build in blocks for messages and signals.
 Event is created while sending and receiving message.
Sequence diagram of Railway
reservation system
State
Transition
Diagrams
Systems Analysis and Design
State Transition Diagrams
• State diagrams describe the life of an object using three main
elements:
• States of an object
• Transitions between states
• Events that trigger the transitions
• A state diagram specifies a state machine
• A state machine is described for a class
• Each object has it’s own state machine
States
• State
• is a condition or situation during the life of an object within which it performs
some activity, or waits for some events
• Has a name
• Has actions -- execute the state
• Has internal transitions -- transitions cause no change in a state
• substates -- the nested structure of a state involving disjoint or concurrent
substates
States
• For example:
entry/unlock door
do/prepare materials
telephone rings/answer telephone
include/lecture state
exit/lock door
At Work state name
action performed on entry to state
activity performed while in state
action performed on arrival of named event
name of a sub-state machine
action performed on leaving state
Initial and Final States
• The initial state of a state machine is indicated with a solid circle
• Known as a pseudo-state
• A transition from this state will show the first real state
• The final state of a state machine is shown as concentric circles
• A closed loop state machine does not have a final state; the object lives until
the entire system terminates
• An open loop state machine represents an object that may terminate before
the system terminates
Initial and Final States
• An example:
At Work At Homego home
go to work
die die
Actions and Activities
• Action
• is an executable atomic computation
• includes operation calls, the creation or destruction of another object, or the
sending of a signal to an object
• associated with transitions and during which an action is not interruptible --
e.g., entry, exit
• Activity is associated with states
• Non-atomic or ongoing computation
• May run to completion or continue indefinitely
• Will be terminated by an event that causes a transition from the state in which
the activity is defined
Events
• An event signature is described as
Event-name (comma-separated-parameter-list)
• Events appear in the internal transition compartment of a state or
on a transition between states
• An event may be one of four types
• Signal event
• Corresponding to the arrival of an asynchronous message or signal
• Call event
• Corresponding to the arrival of a procedural call to an operation
• Time event
• Change event
Events
• A time event occurs after a specified time has elapsed
• Event name is specified as keyword after
• Parameter list is an expression evaluating to a time interval
• after(10 seconds after state “At Work” is entered)
• No specified start time implies “since entry to the current state”
• after(2 seconds)
Events
• A change event occurs whenever a specified condition is met
• Event name is specified as keyword when
• Parameter list is a boolean expression
• The event occurs when both of the following conditions are met, irrespective of
the order when they happen
• The expression evaluates to true
• The object is in the required state
• For example
• when (state = At Work)
• when (date = January 1 2007)
Transitions
A transition is drawn as an arrow between states annotated with a transition
string
• The transition string denotes the event and consequent action
• Only one form of arrowhead is used on statecharts
• The distinction between call events and signal events must be deducted from elsewhere e.g.
an interaction diagram
A transition string is described as
• Event-signature [guard-condition]/action-expression^object.message
• If the guard condition is met the transition occurs immediately
Transitions
• A transition is triggered when its event occurs
• If the guard condition is met, the transition is fired
• If the condition is not met the event is discarded
• The guard condition is checked only once
• If there is no guard condition, triggering will always cause firing
• Note the distinction between a guard condition and a change event
• A guard condition is evaluated once, when the associated event occurs
• A change event occurs whenever its associated condition is met
• Behaviour is as if the condition were being continually evaluated
State Diagrams notation
PaidUnpaid
paying
Invoice
created
Invoice
destroyed
name
state
final stateInitial state
transition
event
State Diagram Example
on loan
entry / myBkCpy.borrow()
on the shelf
entry / myBkCpy.return()
borrow()
return()
on loan
exit / myBkCpy.returned()
on the shelf
exit / myBkCpy.borrowed()
borrow()
return()
Entry action : any action that is marked as linked to the entry action is
executed whenever the given state is entered via a transition
Exit action : any action that is marked as linked to the exit action is
executed whenever the state is left via a transition
This shows the state of an object myBkCpy from a BookCopy class
A Class of BookCopy
BookCopy
onShelf : Boolean value := ‘Y’ on the shelf
value := ‘N’ on loan
return()
borrow()
action / onShelf=‘Y’
action / onShelf=‘N’
State Diagram - Nested States
Super-state
A B
event-1
C
event-2
A B
C
event-1
event-2event-2
Checking
do / check
Item
Dispatching
do / initiate
delivery
Delivering
[all items checked &&
some items not in stock]
Order item
[all items checked && all items available]
Dispatch items
delivery
get first item
Cancelingcancelled
Ordering
Exit/ Item received
do / order Item
*[all items checked]
get next item
entry / deliver
Items
do / Remove
Item
State Diagram Example including substates
Concurrent State models
 Orthogonal Components and Concurrency
 shown separated by dashed line
 supports concurrency
 Objects must be in only one state from each of the
orthogonal components
Starting
A
Finishing
B
C
E
F
D G
Explicit control
branching(fork)
s
T
Concurrent State Models
Three different ways for orthogonal components to communicate:
• Broadcast Events
• Propogated Events
• IN operators
Concurrent State Models
• Broadcast events
• events that more than one orthogonal component accepts
• For example an event T1 is sent to all active orthogonal components it need
not be acted on by all components
• what happens if component S1 is in state A, S2 is in state E and S3 is in state G
when a T1 event occurs?
• what happens if S1 is in state A and S2 is in state D when the event T1 occurs?
Concurrent State Models
• Propagated events are indicated with the caret following the event
name (and optional parameters and guard)
• IN operators are used as a guard on transition T4. This allows the
S3 component to take the transition T4 only if S2 is currently in
state D
Concurrent State Models
A
B
C
E
F
D
G
S1
T3(a,b,c)
H
H
T1
T2^T3(x,y,z)
H
T1
S2
T4[IN(D)]
T3(a,b,c)
S3
T5
T6
S
Activity
Diagrams
Systems Analysis and Design
Modeling Process
Phase Actions Outcome
Initiation Raising a business need Business documents
Requirements
Interviewing stakeholders, exploring the system
environment
Organized
documentation
Specification
Analyze the engineering aspect of the system,
building system concepts
Formal specification
Design
Define architecture, components, data types,
algorithms
Formal Specification
Implementation
Program, build, unit-testing, integrate,
documentation
Testable system
Testing & Integration
Integrate all components, verification, validation,
installation, guidance
Testing results,
Working sys
Maintenance Bug fixes, modifications, adaptation System versions
Behavior Modeling
Checkout
Manager
Order
message: change
status
Add to cart
Check
availability
Supply
Order
Notify
User
[okay][problem]
Sequence Diagrams Activity Diagrams
Inventory
message: create In process
supplied
Order
State Diagrams
Strengths
• Best for modeling complex behavior
• Which does not rely on interactions.
• Has parallel behavior.
• Examples:
• Business workflow (authorizing a loan).
• User behavior (login/logout).
• Algorithms.
Activity Diagram for Customer Service
Start
Fork
decision
merge
Join Final Node
Action
Tokens
Each fork node generates
tokens, according to the
number of paths.
The initial node creates a
single token
Each join “collects” all the
incoming tokens, producing a
token afterwards.
An action requires a token to
execute, and produce a token
when it ends
Object Flows
• Objects describe the interface between actions
Call DataReceive Call Log Call
Receive Call Log Call
Object
Flow
Pins
Call data
Call data
Initiate Call
Call data
Objects with States
Object nodes allow state change modeling.
Call Data
[created]
Receive Call
Find Customer
Type
Call Data
[classified]
Data Store
• A datastore is a stereotype for an object which stores objects
persistently.
All entering
tokens are
copied so that
tokens never
leave the data
store
If a token is already
present in the data
store, it replaces the old
one
Catching Signals
Time Signal Event Signal
Flows when the
time expression is
true
Flows when an
event occurs Sends an event
when a flow
enters
Example: Volvo Blind Spot Info System (BLIS)
Camera Behavior
Check Objects
in Camera
Is object
Detected?[no]
Side Object
Detected
[yes]
Safety Controller Behavior
Side Object
Detected
Detection data
Alarm Deciding
Side?
Left Alarm Right Alarm
[left] [right]
Final Nodes
the activity is terminated when the first
token arrives
the activity is terminated when all
tokens in the graph are destroyed
• An action can be decomposed into an subactivity.
• The invoked activity graph can be used by many subactivity states.
Decomposition
Input
Parameter Final Action
Partitions
• Partitions (swimlanes) can group actions by:
• class, business unit, person etc…
• Can be multidimensional (not always possible).
Register
Bug
Evaluate
Impact
Fix
Bug
Revise
Plan
Release
Fix
Test
Fix
[ priority = 1]
Management
Support
Engineering
Pre / Post Conditions
for Decompositions
for Actions
Exceptions
• Exception represent errors and unexpected situations
interruptible
region
Exception
Edge
What happens to
the tokens?
Exception
Handler
Multiple events
Actions can throw
events too
Exception info can
be modeled
Multiple event
handlers

More Related Content

What's hot

Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
Kaushik Ghosh
 
Ooad sequence diagram lecture
Ooad sequence diagram lectureOoad sequence diagram lecture
Ooad sequence diagram lecture
Technology & Education
 
Activity diagram model
Activity diagram modelActivity diagram model
Activity diagram model
ahmed zewita
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
Ramakant Soni
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
Niloy Rocker
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
Mukesh Tekwani
 
system sequence diagram
system sequence diagramsystem sequence diagram
system sequence diagram
Naeem Kamboh Ravian
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
Manish Kumar
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
Vaidik Trivedi
 
Uml
UmlUml
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UML
Kumar
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
Benazir Fathima
 
Uml
UmlUml
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
Niloy Biswas
 
SAD11 - Sequence Diagrams
SAD11 - Sequence DiagramsSAD11 - Sequence Diagrams
SAD11 - Sequence Diagrams
Michael Heron
 
OOAD - UML - Sequence and Communication Diagrams - Lab
OOAD - UML - Sequence and Communication Diagrams - LabOOAD - UML - Sequence and Communication Diagrams - Lab
OOAD - UML - Sequence and Communication Diagrams - Lab
Victer Paul
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
Preeti Mishra
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
LOKENDRA PRAJAPATI
 
Jeet ooad unit-2
Jeet ooad unit-2Jeet ooad unit-2
Jeet ooad unit-2
Jitendra s Rathore
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
AMITJain879
 

What's hot (20)

Sequence diagram
Sequence diagramSequence diagram
Sequence diagram
 
Ooad sequence diagram lecture
Ooad sequence diagram lectureOoad sequence diagram lecture
Ooad sequence diagram lecture
 
Activity diagram model
Activity diagram modelActivity diagram model
Activity diagram model
 
Sequence diagram- UML diagram
Sequence diagram- UML diagramSequence diagram- UML diagram
Sequence diagram- UML diagram
 
Uml Activity Diagram
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
 
Types of UML diagrams
Types of UML diagramsTypes of UML diagrams
Types of UML diagrams
 
system sequence diagram
system sequence diagramsystem sequence diagram
system sequence diagram
 
Overview of UML Diagrams
Overview of UML DiagramsOverview of UML Diagrams
Overview of UML Diagrams
 
State Diagrams
State DiagramsState Diagrams
State Diagrams
 
Uml
UmlUml
Uml
 
state modeling In UML
state modeling In UMLstate modeling In UML
state modeling In UML
 
Behavioural modelling
Behavioural modellingBehavioural modelling
Behavioural modelling
 
Uml
UmlUml
Uml
 
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
UML Diagram - Use-Case diagram, Activity Diagram, Sequence Diagram, Er Diagra...
 
SAD11 - Sequence Diagrams
SAD11 - Sequence DiagramsSAD11 - Sequence Diagrams
SAD11 - Sequence Diagrams
 
OOAD - UML - Sequence and Communication Diagrams - Lab
OOAD - UML - Sequence and Communication Diagrams - LabOOAD - UML - Sequence and Communication Diagrams - Lab
OOAD - UML - Sequence and Communication Diagrams - Lab
 
Sequence diagrams
Sequence diagramsSequence diagrams
Sequence diagrams
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Jeet ooad unit-2
Jeet ooad unit-2Jeet ooad unit-2
Jeet ooad unit-2
 
Advanced Structural Modeling
Advanced Structural ModelingAdvanced Structural Modeling
Advanced Structural Modeling
 

Viewers also liked

Sequence diagrams in UML
Sequence diagrams in UMLSequence diagrams in UML
Sequence diagrams in UML
Paxcel Technologies
 
Uml sequence diagrams
Uml sequence diagramsUml sequence diagrams
Uml sequence diagrams
ASHOK KUMAR PALAKI
 
Data Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence DiagramData Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence Diagram
Hamna Shahzad
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
barney92
 
Planning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram GenerationPlanning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram Generation
Yaser Sulaiman
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
kebsterz
 
Healthcare Tracker App: Full Report
Healthcare Tracker App: Full ReportHealthcare Tracker App: Full Report
Healthcare Tracker App: Full Report
Dave Siegel
 
State transition diagrams
State transition diagramsState transition diagrams
State transition diagramsphanbunna
 
Cap 1-y-2
Cap 1-y-2Cap 1-y-2
Cap 1-y-2
Brandom Cortes
 
Negocio
NegocioNegocio
Gas Chromatograph & Analyzers
Gas Chromatograph & AnalyzersGas Chromatograph & Analyzers
Gas Chromatograph & Analyzers
ENG AL AMERY
 
Trabajo informatica de maria
Trabajo informatica de mariaTrabajo informatica de maria
Trabajo informatica de maria
Sebastian Mendez
 
Grid layout examples
Grid layout examplesGrid layout examples
Grid layout examples
Amelia Browne
 
SPORT & FITNESS MOBILE APPS POLAND
SPORT & FITNESS MOBILE APPS POLAND SPORT & FITNESS MOBILE APPS POLAND
SPORT & FITNESS MOBILE APPS POLAND
Dariusz Adamczyk
 
Uml
UmlUml
Dinámica
DinámicaDinámica
Twitter and Medical Education: Information and Inspiration
Twitter and Medical Education: Information and InspirationTwitter and Medical Education: Information and Inspiration
Twitter and Medical Education: Information and Inspiration
Albert Einstein College of Medicine
 
Development of Twitter Application #8 - Streaming API
Development of Twitter Application #8 - Streaming APIDevelopment of Twitter Application #8 - Streaming API
Development of Twitter Application #8 - Streaming API
Myungjin Lee
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
weichen
 

Viewers also liked (19)

Sequence diagrams in UML
Sequence diagrams in UMLSequence diagrams in UML
Sequence diagrams in UML
 
Uml sequence diagrams
Uml sequence diagramsUml sequence diagrams
Uml sequence diagrams
 
Data Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence DiagramData Flow Diagram and Sequence Diagram
Data Flow Diagram and Sequence Diagram
 
Uml diagrams
Uml diagramsUml diagrams
Uml diagrams
 
Planning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram GenerationPlanning-Based Approach for Automating Sequence Diagram Generation
Planning-Based Approach for Automating Sequence Diagram Generation
 
08 class and sequence diagrams
08   class and sequence diagrams08   class and sequence diagrams
08 class and sequence diagrams
 
Healthcare Tracker App: Full Report
Healthcare Tracker App: Full ReportHealthcare Tracker App: Full Report
Healthcare Tracker App: Full Report
 
State transition diagrams
State transition diagramsState transition diagrams
State transition diagrams
 
Cap 1-y-2
Cap 1-y-2Cap 1-y-2
Cap 1-y-2
 
Negocio
NegocioNegocio
Negocio
 
Gas Chromatograph & Analyzers
Gas Chromatograph & AnalyzersGas Chromatograph & Analyzers
Gas Chromatograph & Analyzers
 
Trabajo informatica de maria
Trabajo informatica de mariaTrabajo informatica de maria
Trabajo informatica de maria
 
Grid layout examples
Grid layout examplesGrid layout examples
Grid layout examples
 
SPORT & FITNESS MOBILE APPS POLAND
SPORT & FITNESS MOBILE APPS POLAND SPORT & FITNESS MOBILE APPS POLAND
SPORT & FITNESS MOBILE APPS POLAND
 
Uml
UmlUml
Uml
 
Dinámica
DinámicaDinámica
Dinámica
 
Twitter and Medical Education: Information and Inspiration
Twitter and Medical Education: Information and InspirationTwitter and Medical Education: Information and Inspiration
Twitter and Medical Education: Information and Inspiration
 
Development of Twitter Application #8 - Streaming API
Development of Twitter Application #8 - Streaming APIDevelopment of Twitter Application #8 - Streaming API
Development of Twitter Application #8 - Streaming API
 
Sequence Diagram
Sequence DiagramSequence Diagram
Sequence Diagram
 

Similar to Diagrams

Java
Java   Java
State Diagram.pdf
State Diagram.pdfState Diagram.pdf
State Diagram.pdf
ssuser226e3e
 
State modeling
State modelingState modeling
State modeling
Yashodha Sambrani
 
Seminar State Chart1
Seminar State Chart1Seminar State Chart1
Seminar State Chart1
Jenish Bhavsar
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagram
Ajit Nayak
 
sequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdfsequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdf
mounikanarra3
 
STATE DIAGRAM.pptx
STATE DIAGRAM.pptxSTATE DIAGRAM.pptx
STATE DIAGRAM.pptx
ssuser2d043c
 
MID2 UML (1).pptx
MID2 UML (1).pptxMID2 UML (1).pptx
MID2 UML (1).pptx
mounikanarra3
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
Dr Chetan Shelke
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
Preeti Mishra
 
Chapter7
Chapter7Chapter7
Chapter7
Dang Tuan
 
Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
Niloy Rocker
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
Edhole.com
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
Edhole.com
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
Baskarkncet
 
Jar chapter 4, part 1
Jar chapter 4, part 1Jar chapter 4, part 1
Jar chapter 4, part 1
Reham Maher El-Safarini
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
5. state diagrams
5. state diagrams5. state diagrams
5. state diagrams
APU
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
APU
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
Niloy Rocker
 

Similar to Diagrams (20)

Java
Java   Java
Java
 
State Diagram.pdf
State Diagram.pdfState Diagram.pdf
State Diagram.pdf
 
State modeling
State modelingState modeling
State modeling
 
Seminar State Chart1
Seminar State Chart1Seminar State Chart1
Seminar State Chart1
 
Software Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagramSoftware Engineering :Behavioral Modelling - II State diagram
Software Engineering :Behavioral Modelling - II State diagram
 
sequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdfsequencediagram-150302224029-conversion-gate01 (1).pdf
sequencediagram-150302224029-conversion-gate01 (1).pdf
 
STATE DIAGRAM.pptx
STATE DIAGRAM.pptxSTATE DIAGRAM.pptx
STATE DIAGRAM.pptx
 
MID2 UML (1).pptx
MID2 UML (1).pptxMID2 UML (1).pptx
MID2 UML (1).pptx
 
Unit three Advanced State Modelling
Unit three Advanced State ModellingUnit three Advanced State Modelling
Unit three Advanced State Modelling
 
State chart diagram
State chart diagramState chart diagram
State chart diagram
 
Chapter7
Chapter7Chapter7
Chapter7
 
Slide 6 Activity Diagram
Slide 6 Activity DiagramSlide 6 Activity Diagram
Slide 6 Activity Diagram
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
 
Free ebooks download ! Edhole
Free ebooks download ! EdholeFree ebooks download ! Edhole
Free ebooks download ! Edhole
 
08 state diagram and activity diagram
08 state diagram and activity diagram08 state diagram and activity diagram
08 state diagram and activity diagram
 
Jar chapter 4, part 1
Jar chapter 4, part 1Jar chapter 4, part 1
Jar chapter 4, part 1
 
Unit 3(advanced state modeling & interaction meodelling)
Unit  3(advanced state modeling & interaction meodelling)Unit  3(advanced state modeling & interaction meodelling)
Unit 3(advanced state modeling & interaction meodelling)
 
5. state diagrams
5. state diagrams5. state diagrams
5. state diagrams
 
5.state diagrams
5.state diagrams5.state diagrams
5.state diagrams
 
Slide 4 Interaction Diagram
Slide 4 Interaction DiagramSlide 4 Interaction Diagram
Slide 4 Interaction Diagram
 

Recently uploaded

原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
u86oixdj
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
zsjl4mimo
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
74nqk8xf
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
kuntobimo2016
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
AndrzejJarynowski
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
74nqk8xf
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
manishkhaire30
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
74nqk8xf
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 

Recently uploaded (20)

原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
原版制作(swinburne毕业证书)斯威本科技大学毕业证毕业完成信一模一样
 
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(Harvard毕业证书)哈佛大学毕业证如何办理
 
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
一比一原版(Coventry毕业证书)考文垂大学毕业证如何办理
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023State of Artificial intelligence Report 2023
State of Artificial intelligence Report 2023
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 
Intelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicineIntelligence supported media monitoring in veterinary medicine
Intelligence supported media monitoring in veterinary medicine
 
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
一比一原版(Chester毕业证书)切斯特大学毕业证如何办理
 
Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
Learn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queriesLearn SQL from basic queries to Advance queries
Learn SQL from basic queries to Advance queries
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
一比一原版(牛布毕业证书)牛津布鲁克斯大学毕业证如何办理
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 

Diagrams

  • 2. Introduction to Sequence diagram Sequence diagram is interaction diagram that shows the set of objects and messages send and receive by those object. It mainly emphases on time ordering and messages. It is used to illustrate the dynamic view of system. These are also called as “Isomorphic diagram”.
  • 3. Terms and Concepts Objects or Participants :-  The sequence diagram is made up of collection of participants or objects. Participants are system parts that interact each other during sequence diagram.  The participants interact with each other by sending and receiving message  The object is represented by as below: Object:Class_Name
  • 4. Terms and Concepts Lifeline:-  Lifeline represents the existence of an object over a period of time.  It is represented by vertical dashed line.  Most objects that appeared in ‘Interaction diagram’ will be in existence for the duration of an interaction. So, these objects are aligned at top at top of diagram with their lifeline from top to bottom of diagram.
  • 5. Terms and Concepts Activation bar:-  It is also called as focus of control. It shows the period of time during which an object is performing an action.  The top of rectangle is aligned with start of the action. The bottom is aligned with its completion and can be marked by a written message  It is represented by tall thin rectangle:
  • 6. Terms and Concepts Messages:-  The interaction in a sequence diagram between the objects can be shown by using messages.  The messages on sequence diagram are specifies using an arrow from participant that wants to pass the messages to the participant that receive the messages .  Messages can be flow in whatever direction required for interaction from left to right and right to left.
  • 7. Terms and Concepts Messages:-  It has following kinds of messages: 1)Synchronous messages:- * It is a message where the sender is blocked and waits until the receiver has finished processing of message. * It is invoked the caller waits for the receiver to return from the message invocation. * It is represented by solid line with full arrow. 2)Asynchronous messages:- * It is a messages where the sender is not blocked and can continue executing. * It is represent by solid line with half arrow.
  • 8. Terms and Concepts Messages:-  It has following kinds of messages: 3)Reflexive messages:- * If the object sends the message to itself then it is called as ‘Reflexive message. * It is represented by solid line with loops the lifeline of object. 4)Return messages:- * It can be used at the end of activation bar to show that control flow of activation returns to the participant that pass the original message. * It is represent by dashed line from sender to receiver.
  • 9. Terms and Concepts  It has following kinds of messages: 5)Create messages:- * It is used to create object during interaction. * The object can be created by using <<create>> to indicate the timing of creation. * Creating message can be shown as below: 6)Destroy messages:- * It is used to destroy the objects during interaction. * The objects can be terminated using <<destroy>> which points to an “x”. * It indicates that object named message is terminated.
  • 10. Terms and Concepts Time:-  The sequence diagram describes the order in which interaction takes place.  So time in an important factor. The time on sequence diagram starts at top of the page just below the object and then progress down the page.  Time is all about ordering but not duration.
  • 11. Terms and Concepts Event:-  It can be referred as smallest part of an interaction and event can occur of at any given point in a Time.  When interaction take place, Events are called as build in blocks for messages and signals.  Event is created while sending and receiving message.
  • 12. Sequence diagram of Railway reservation system
  • 14. State Transition Diagrams • State diagrams describe the life of an object using three main elements: • States of an object • Transitions between states • Events that trigger the transitions • A state diagram specifies a state machine • A state machine is described for a class • Each object has it’s own state machine
  • 15. States • State • is a condition or situation during the life of an object within which it performs some activity, or waits for some events • Has a name • Has actions -- execute the state • Has internal transitions -- transitions cause no change in a state • substates -- the nested structure of a state involving disjoint or concurrent substates
  • 16. States • For example: entry/unlock door do/prepare materials telephone rings/answer telephone include/lecture state exit/lock door At Work state name action performed on entry to state activity performed while in state action performed on arrival of named event name of a sub-state machine action performed on leaving state
  • 17. Initial and Final States • The initial state of a state machine is indicated with a solid circle • Known as a pseudo-state • A transition from this state will show the first real state • The final state of a state machine is shown as concentric circles • A closed loop state machine does not have a final state; the object lives until the entire system terminates • An open loop state machine represents an object that may terminate before the system terminates
  • 18. Initial and Final States • An example: At Work At Homego home go to work die die
  • 19. Actions and Activities • Action • is an executable atomic computation • includes operation calls, the creation or destruction of another object, or the sending of a signal to an object • associated with transitions and during which an action is not interruptible -- e.g., entry, exit • Activity is associated with states • Non-atomic or ongoing computation • May run to completion or continue indefinitely • Will be terminated by an event that causes a transition from the state in which the activity is defined
  • 20. Events • An event signature is described as Event-name (comma-separated-parameter-list) • Events appear in the internal transition compartment of a state or on a transition between states • An event may be one of four types • Signal event • Corresponding to the arrival of an asynchronous message or signal • Call event • Corresponding to the arrival of a procedural call to an operation • Time event • Change event
  • 21. Events • A time event occurs after a specified time has elapsed • Event name is specified as keyword after • Parameter list is an expression evaluating to a time interval • after(10 seconds after state “At Work” is entered) • No specified start time implies “since entry to the current state” • after(2 seconds)
  • 22. Events • A change event occurs whenever a specified condition is met • Event name is specified as keyword when • Parameter list is a boolean expression • The event occurs when both of the following conditions are met, irrespective of the order when they happen • The expression evaluates to true • The object is in the required state • For example • when (state = At Work) • when (date = January 1 2007)
  • 23. Transitions A transition is drawn as an arrow between states annotated with a transition string • The transition string denotes the event and consequent action • Only one form of arrowhead is used on statecharts • The distinction between call events and signal events must be deducted from elsewhere e.g. an interaction diagram A transition string is described as • Event-signature [guard-condition]/action-expression^object.message • If the guard condition is met the transition occurs immediately
  • 24. Transitions • A transition is triggered when its event occurs • If the guard condition is met, the transition is fired • If the condition is not met the event is discarded • The guard condition is checked only once • If there is no guard condition, triggering will always cause firing • Note the distinction between a guard condition and a change event • A guard condition is evaluated once, when the associated event occurs • A change event occurs whenever its associated condition is met • Behaviour is as if the condition were being continually evaluated
  • 26. State Diagram Example on loan entry / myBkCpy.borrow() on the shelf entry / myBkCpy.return() borrow() return() on loan exit / myBkCpy.returned() on the shelf exit / myBkCpy.borrowed() borrow() return() Entry action : any action that is marked as linked to the entry action is executed whenever the given state is entered via a transition Exit action : any action that is marked as linked to the exit action is executed whenever the state is left via a transition This shows the state of an object myBkCpy from a BookCopy class
  • 27. A Class of BookCopy BookCopy onShelf : Boolean value := ‘Y’ on the shelf value := ‘N’ on loan return() borrow() action / onShelf=‘Y’ action / onShelf=‘N’
  • 28. State Diagram - Nested States Super-state A B event-1 C event-2 A B C event-1 event-2event-2
  • 29. Checking do / check Item Dispatching do / initiate delivery Delivering [all items checked && some items not in stock] Order item [all items checked && all items available] Dispatch items delivery get first item Cancelingcancelled Ordering Exit/ Item received do / order Item *[all items checked] get next item entry / deliver Items do / Remove Item State Diagram Example including substates
  • 30. Concurrent State models  Orthogonal Components and Concurrency  shown separated by dashed line  supports concurrency  Objects must be in only one state from each of the orthogonal components Starting A Finishing B C E F D G Explicit control branching(fork) s T
  • 31. Concurrent State Models Three different ways for orthogonal components to communicate: • Broadcast Events • Propogated Events • IN operators
  • 32. Concurrent State Models • Broadcast events • events that more than one orthogonal component accepts • For example an event T1 is sent to all active orthogonal components it need not be acted on by all components • what happens if component S1 is in state A, S2 is in state E and S3 is in state G when a T1 event occurs? • what happens if S1 is in state A and S2 is in state D when the event T1 occurs?
  • 33. Concurrent State Models • Propagated events are indicated with the caret following the event name (and optional parameters and guard) • IN operators are used as a guard on transition T4. This allows the S3 component to take the transition T4 only if S2 is currently in state D
  • 36. Modeling Process Phase Actions Outcome Initiation Raising a business need Business documents Requirements Interviewing stakeholders, exploring the system environment Organized documentation Specification Analyze the engineering aspect of the system, building system concepts Formal specification Design Define architecture, components, data types, algorithms Formal Specification Implementation Program, build, unit-testing, integrate, documentation Testable system Testing & Integration Integrate all components, verification, validation, installation, guidance Testing results, Working sys Maintenance Bug fixes, modifications, adaptation System versions
  • 37. Behavior Modeling Checkout Manager Order message: change status Add to cart Check availability Supply Order Notify User [okay][problem] Sequence Diagrams Activity Diagrams Inventory message: create In process supplied Order State Diagrams
  • 38. Strengths • Best for modeling complex behavior • Which does not rely on interactions. • Has parallel behavior. • Examples: • Business workflow (authorizing a loan). • User behavior (login/logout). • Algorithms.
  • 39. Activity Diagram for Customer Service Start Fork decision merge Join Final Node Action
  • 40. Tokens Each fork node generates tokens, according to the number of paths. The initial node creates a single token Each join “collects” all the incoming tokens, producing a token afterwards. An action requires a token to execute, and produce a token when it ends
  • 41. Object Flows • Objects describe the interface between actions Call DataReceive Call Log Call Receive Call Log Call Object Flow Pins Call data Call data Initiate Call Call data
  • 42. Objects with States Object nodes allow state change modeling. Call Data [created] Receive Call Find Customer Type Call Data [classified]
  • 43. Data Store • A datastore is a stereotype for an object which stores objects persistently. All entering tokens are copied so that tokens never leave the data store If a token is already present in the data store, it replaces the old one
  • 44. Catching Signals Time Signal Event Signal Flows when the time expression is true Flows when an event occurs Sends an event when a flow enters
  • 45. Example: Volvo Blind Spot Info System (BLIS)
  • 46. Camera Behavior Check Objects in Camera Is object Detected?[no] Side Object Detected [yes] Safety Controller Behavior Side Object Detected Detection data Alarm Deciding Side? Left Alarm Right Alarm [left] [right]
  • 47. Final Nodes the activity is terminated when the first token arrives the activity is terminated when all tokens in the graph are destroyed
  • 48. • An action can be decomposed into an subactivity. • The invoked activity graph can be used by many subactivity states. Decomposition Input Parameter Final Action
  • 49. Partitions • Partitions (swimlanes) can group actions by: • class, business unit, person etc… • Can be multidimensional (not always possible). Register Bug Evaluate Impact Fix Bug Revise Plan Release Fix Test Fix [ priority = 1] Management Support Engineering
  • 50. Pre / Post Conditions for Decompositions for Actions
  • 51. Exceptions • Exception represent errors and unexpected situations interruptible region Exception Edge What happens to the tokens? Exception Handler
  • 52. Multiple events Actions can throw events too Exception info can be modeled Multiple event handlers