0% found this document useful (0 votes)
24 views

Chapter 6: Behavioral Modeling: 1 Oktober 2015

This document discusses three types of behavioral modeling: sequence diagrams, communication diagrams, and behavioral state diagrams. Sequence diagrams show the sequence of messages passed between objects for one use case. Communication diagrams show communication flows among objects as an object diagram. Behavioral state diagrams show the different states an object passes through during its life.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Chapter 6: Behavioral Modeling: 1 Oktober 2015

This document discusses three types of behavioral modeling: sequence diagrams, communication diagrams, and behavioral state diagrams. Sequence diagrams show the sequence of messages passed between objects for one use case. Communication diagrams show communication flows among objects as an object diagram. Behavioral state diagrams show the different states an object passes through during its life.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 18

Chapter 6: Behavioral Modeling

1 Oktober 2015

Behavioral Models

Diagram underlying business process


Represent internal behavior of system
Iterative
Technology-independent (Analysis Phase)

3 Types
1. Sequence
2. Communicatio
n
3. Behavioral
State

Interaction underlying
details of Use
Case
Changes that occur in
underlying data

Review of OO Concepts
Patient Class
Attributes:
- Name
- Address
- Birthdate
Methods (or Operations)

Objects of Patient Class:


Jim Maloney
Mary Wilson
Theresa Marks

Type 1: Sequence Diagrams


Sequence of events for ONE Use
Case
Show sequence of messages passed
between objects

Sequence Diagram Example


Make
Appointment

Becomes . . .

Sequence Diagram Components


AN ACTOR

AN OBJECT

anObject:aClass

A LIFELINE
A FOCUS OF CONTROL
A MESSAGE
OBJECT DESTRUCTION

aMessage()
x

Practice Exercises

Type 2: Communication Diagrams


Show communication flows among
objects
An object diagram
Show patterns of activity

Communication Diagram Example

Communication Diagram Components

AN ACTOR

AN OBJECT

anObject:aClass

AN ASSOCIATION

A MESSAGE

aMessage()

CRUD Analysis

Practice Exercises

Type 3: Behavior State Diagrams


Show different states through which
an object passes during its life
Used to show how an instance
evolves over time

Behavioral State
Terminology
State value of attributes at specific point in time
Event stimulus that changes an objects value
Transition movement of object from one state to
another
Action Nondecomposable (Atomic) process that
cannot be interrupted (an action is assosiated
with a transition)
Activity Can be decomposed & can be
stopped/started by Actions (an activity is
assosiated with a state)

Behavioral State Example

Behavioral State
Components
A STATE

aState

AN INITIAL STATE
A FINAL STATE

AN EVENT
A TRANSITION

anEvent

Practice Exercises

You might also like