180 likes | 326 Views
INFS 6225 Object-Oriented Analysis & Design. Chapter 6: Behavioral Modeling. Behavioral Models. Diagram underlying business process Represent internal behavior of system Iterative Technology-independent (Analysis Phase). Interaction – underlying details of Use Case.
E N D
INFS 6225Object-Oriented Analysis & Design Chapter 6: Behavioral Modeling
Behavioral Models • Diagram underlying business process • Represent internal behavior of system • Iterative • Technology-independent (Analysis Phase)
Interaction – underlying details of Use Case Changes that occur in underlying data 3 Types • Sequence • Communication • Behavioral State
Review of OO Concepts Patient Class • Objects of Patient Class: • Jim Maloney • Mary Wilson • Theresa Marks Attributes: - Name - Address - Birthdate Methods (or Operations)
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 A LIFELINE A FOCUS OF CONTROL A MESSAGE OBJECT DESTRUCTION anObject:aClass aMessage() x
Type 2: Communication Diagrams • Show communication flows among objects • An object diagram • Show patterns of activity
AN ACTOR AN OBJECT AN ASSOCIATION A MESSAGE anObject:aClass aMessage() Communication Diagram Components
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 • Activity – Can be decomposed & can be stopped/started by Actions
A STATE AN INITIAL STATE A FINAL STATE AN EVENT A TRANSITION aState anEvent Behavioral State Components