6 behavioral modeling

18
Chapter 6: Behavioral Modeling 1 Oktober 2015

Upload: putri-irma-k-bratawijaya

Post on 13-Jul-2016

220 views

Category:

Documents


1 download

DESCRIPTION

Behavioral Modeling

TRANSCRIPT

Page 1: 6 Behavioral Modeling

Chapter 6: Behavioral Modeling

1 Oktober 2015

Page 2: 6 Behavioral Modeling

Behavioral Models

• Diagram underlying business process• Represent internal behavior of system• Iterative• Technology-independent (Analysis Phase)

Page 3: 6 Behavioral Modeling

3 Types

1. Sequence2. Communication3. Behavioral State

Interaction – underlying Interaction – underlying details of Use details of Use CaseCase

Changes that occur in Changes that occur in underlying dataunderlying data

Page 4: 6 Behavioral Modeling

Review of OO Concepts

Patient Class

Attributes: - Name - Address - Birthdate

Methods (or Operations)

Objects of Patient Class:

• Jim Maloney• Mary Wilson• Theresa Marks

Page 5: 6 Behavioral Modeling

Type 1: Sequence Diagrams

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

objects

Page 6: 6 Behavioral Modeling

Sequence Diagram Example

MakeAppointment

Becomes . . .

Page 7: 6 Behavioral Modeling

Sequence Diagram Components

AN ACTOR

AN OBJECT

A LIFELINE

A FOCUS OF CONTROL

A MESSAGE

OBJECT DESTRUCTION

anObject:aClass

aMessage()

x

Page 8: 6 Behavioral Modeling

Practice Exercises

Page 9: 6 Behavioral Modeling

Type 2: Communication Diagrams

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

Page 10: 6 Behavioral Modeling

Communication Diagram Example

Page 11: 6 Behavioral Modeling

Communication Diagram Components

AN ACTOR

AN OBJECT

AN ASSOCIATION

A MESSAGE

anObject:aClass

aMessage()

Page 12: 6 Behavioral Modeling

CRUD Analysis

Page 13: 6 Behavioral Modeling

Practice ExercisesPractice Exercises

Page 14: 6 Behavioral Modeling

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

Page 15: 6 Behavioral Modeling

Behavioral State Terminology• State – value of attributes at specific point in time• Event – stimulus that changes an object’s 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)

Page 16: 6 Behavioral Modeling

Behavioral State Example

Page 17: 6 Behavioral Modeling

Behavioral State Components

A STATE

AN INITIAL STATE

A FINAL STATE

AN EVENT

A TRANSITION

aState

anEvent

Page 18: 6 Behavioral Modeling

Practice ExercisesPractice Exercises