Upload
muhammad-faiz-mohd-yunus
View
221
Download
0
Embed Size (px)
Citation preview
8/10/2019 Lab 5 Behavioral Model
1/18
BehavioralModeling
1
8/10/2019 Lab 5 Behavioral Model
2/18
Key IdeasBehavioral models describe the internal dynamic aspects of aninformation system that supports business processes in an organization
Key UML behavioral models are: sequence diagrams, collaborationdiagrams, and statechart diagrams
2
8/10/2019 Lab 5 Behavioral Model
3/18
Behavioral Models -
Introduction2 types of behavioral models:
1. Used to represent the underlying details of a
business process portrayed by a use case model
Interaction diagrams: - Sequence and Communication diagram.
2. Used to represent the changes that occur in the underlying data
State machines diagram
3
8/10/2019 Lab 5 Behavioral Model
4/18
Purpose of Behavioral
ModelsTo depict the internal view of business processes that a use casedescribes or dynamic view of an IS
To show the effects of varied processes on the system
4
8/10/2019 Lab 5 Behavioral Model
5/18
Interaction DiagramsIt focus on object levelInteraction Diagrams Components
Objects
Operations
objects behavior Messages
It model the interaction that take place between the objects in an IS
5
8/10/2019 Lab 5 Behavioral Model
6/18
Sequence DiagramsIllustrate the objects that participate in a use-caseShow the messages that pass between objects for aparticular use-case
It is a dynamic model that shows the explicit sequence of
messages that are passed between objects in a definedinteraction.
It emphasize the time-based ordering of the activity that
takes place among a set of objects.
6
8/10/2019 Lab 5 Behavioral Model
7/18
Example of Sequence Diagram
7
8/10/2019 Lab 5 Behavioral Model
8/18
Sequence Diagram Syntax
8
AN ACTOR
AN OBJECT
A LIFELINE
An execution Occurrence
A MESSAGE
OBJECT DESTRUCTION
anObject:aClass
aMessage()
x
Return Value()
8/10/2019 Lab 5 Behavioral Model
9/18
Building a SequenceDiagram
9
Determine the context of the sequence diagrama system, a use case,
a scenario of a use case, or an operation o a class.
Identify the participating objects
Set the lifeline for each object
Add messages
Place the execution occurrence on each objects lifeline
Validate the sequence diagram
8/10/2019 Lab 5 Behavioral Model
10/1810
Normal Flow of Events:
1. Customersubmits a search request to the system.2. The system provides thecustomer a list of recommended CDs.3. The customer chooses one of the CDs to find additional
information.4. The system provides the customerwith basic information &
CD Reviews
5. The customer calls the maintain order use case.6. The customer iterates over 3 through 5 until finished shopping.7. The customerexecutes the checkout use case.8. The customerleaves the website.
8/10/2019 Lab 5 Behavioral Model
11/1811
8/10/2019 Lab 5 Behavioral Model
12/18
Statechart Diagrams
12
The statechart diagram shows the different states of the object and whatevents cause the object to change from one state to another.
8/10/2019 Lab 5 Behavioral Model
13/18
Components of Statechart
Diagrams
13
States
Events
Transitions
Actions
Activities
8/10/2019 Lab 5 Behavioral Model
14/18
Example Statechart Diagram
14
8/10/2019 Lab 5 Behavioral Model
15/18
Statechart Diagram Syntax
15
A STATE
AN INITIAL STATE
A FINAL STATE
AN EVENT
A TRANSITION
aState
anEvent
8/10/2019 Lab 5 Behavioral Model
16/18
Building Statechart
Diagrams
16
Set the context
Identify the initial final, and stable states of the object
Determine the order in which the object will pass throughstable states
Identify the events, actions, and guard conditions associated
with the transitionsValidate the statechart diagram
8/10/2019 Lab 5 Behavioral Model
17/18
17
8/10/2019 Lab 5 Behavioral Model
18/18
SummarySequence diagramsillustrate the classes that participate in a use case and themessages that pass between them.
Statechart diagramsshow the different states that a single class passes throughin response to events.
18