Chapter 3 (Behavioral Diagrams) - Part 1 Intro, State Transition
Chapter 3 (Behavioral Diagrams) - Part 1 Intro, State Transition
TRANSITION
DIAGRAMS
Introduction
• Behavioral diagrams depict the behavioral features of a system.
Difference with structural diagrams: depict the static/skeleton view of a system, behaviours – what an element is
doing at a particular time, who is making that element to do what it’s doing, and how the action of that element
impacts the whole system
• They are used to show dynamic aspects of a system such as time aspects and human participants and external events
Key:
i. Event/Trigger: Bus arriving
• The transition from state to Activity: Boarding bus
state is shown using an arrow
Example:
A passenger who wants to travel waits at a pick up station. When the needed
bus arrives, he/she boards the bus. When bus reaches destination, the
passenger alights. Represent this scenario using a state transition/chart
diagrams
a b
- Identify the primary object: Travelling
Passenger waiting Arrival/destination
Primary object:
- Book
States:
- Catalogued, borrowed, returned, defaulted
a b
Borrowed Returned
catalogued
c
d
Defaulted
Key
A: B: C: D:
Events/Triggers Events/Triggers Events/Triggers Events/Triggers
- Surrender ID - Surrender book - Book passes due date - Surrender book
Activities: Activities: Activities: - Pay
- Librarian inputs student and - Librarian checks from - Places book under Activities:
book details borrowed items defaulters - Librarian checks from
- Receive ID defaulted items
- Receive ID