Chapter 6 Behavioral Modeling 1 Oktober 2015 Behavioral
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. Communication 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 an. Object: a. Class A LIFELINE A FOCUS OF CONTROL A MESSAGE OBJECT DESTRUCTION a. Message() 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. Object: a. Class AN ASSOCIATION A MESSAGE a. Message()
CRUD Analysis
Practice Exercises
Type 3: Behavior State Diagrams • Show different states through which an object passes during its life • Used to show 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 a. State AN INITIAL STATE A FINAL STATE AN EVENT A TRANSITION an. Event
Practice Exercises
- Slides: 18