6 behavioral modeling

Post on 13-Jul-2016

220 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

Behavioral Modeling

TRANSCRIPT

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. 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

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

MakeAppointment

Becomes . . .

Sequence Diagram Components

AN ACTOR

AN OBJECT

A LIFELINE

A FOCUS OF CONTROL

A MESSAGE

OBJECT DESTRUCTION

anObject:aClass

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

AN ASSOCIATION

A MESSAGE

anObject:aClass

aMessage()

CRUD Analysis

Practice ExercisesPractice 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 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)

Behavioral State Example

Behavioral State Components

A STATE

AN INITIAL STATE

A FINAL STATE

AN EVENT

A TRANSITION

aState

anEvent

Practice ExercisesPractice Exercises

top related