Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

OBJECT ORIENTED ANALYSIS & DESIGN(OOAD)

(20CS3221)

UNIT-IV
Basic Behavioral Modeling

1
AGENDA:


Interactions

Interaction diagrams

Use cases

Use case diagrams

Activity Diagrams

2
Interactions

An interaction is a communication between objects in a system that results in


the exchange of information or services.
It represents a collaborative effort between objects to achieve a specific goal.

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

Sequence diagram: Focuses on the temporal ordering of messages exchanged


between objects.
Collaboration diagram: Emphasizes the structural organization of objects involved in an
interaction and their message flow.

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

You might also like