Professional Documents
Culture Documents
OOAD UNIT-IV
OOAD UNIT-IV
(20CS3221)
UNIT-IV
Basic Behavioral Modeling
1
AGENDA:
Interactions
Interaction diagrams
Use cases
Use case diagrams
Activity Diagrams
2
Interactions
3
Types of Interactions
Synchronous interaction: The sender waits for a response from the
receiver before continuing.
Asynchronous interaction: The sender doesn't wait for a response and
can proceed with other tasks.
4
Interaction Diagrams
Visual representations of interactions between objects.
Employ UML (Unified Modeling Language) notation to depict objects,
messages, lifelines, and sequences.
5
Types of Interaction Diagrams
6
Sequence Diagram Example
->Illustrates a sequence of
interactions between a
Customer and an Order object.
->The Customer sends
messages to the Order object
to place, modify, or cancel an
order.
->The Order object responds to
these messages, performing
the requested operations.
7
Collaboration Diagram Example
8
Use Cases
Descriptions of how actors (users, external systems) interact with a system
to achieve specific goals.
Capture the functional requirements of a system from the user's
perspective.
9
Use Case Components
Actor: An external entity that interacts with the system.
Goal: The objective that an actor wants to achieve by interacting with the
system.
Preconditions: Conditions that must be met before the use case can begin.
Postconditions: Conditions that hold true after the use case has completed
successfully.
Basic flow: The main sequence of steps involved in the use case.
Alternative flows: Variations from the basic flow that may occur due to
errors, exceptions, or user choices.
10
Use Case Diagrams
Visual representations of the interactions between actors and a system to
achieve specific goals.
Employ UML notation to depict actors, use cases, and their relationships.
11
Use Case Diagram Example
12
Activity Diagrams
Visual representations of the flow of activities within a system.
Employ UML notation to depict activities, decisions, flows, and object
nodes.
13
Activity Diagram Example
14
Activity Diagram Example
15
Summary
Interactions, interaction diagrams, use cases, use case diagrams, and activity
diagrams are fundamental concepts in behavioral modeling.
They provide valuable tools for understanding and documenting system
behavior, requirements, and interactions from various perspectives.
16
17
THANK YOU
18