Lecture 05
Lecture 05
• Structural things
• Behavioral things
• Grouping things
• Annotational things
STRUCTURAL THINGS
• Nouns that depicts the static behavior of a model is
termed as structural things.
• They display the physical and conceptual
components.
• They include class, object, interface, node,
collaboration, component, and a use case.
STRUCTURAL THINGS
• Class: A Class is a set of identical things
that outlines the functionality and properties
of an object.
• It also represents the abstract class whose
functionalities are not defined.
STRUCTURAL THINGS
• Object: An individual that describes
the behavior and the functions of a
system.
• The notation of the object is similar
to that of the class;
• the only difference is that the object
name is always underlined.
• Interface: A set of operations that describes the
functionality of a class, which is implemented whenever
an interface is implemented.
• Activity diagram
• Timing diagram
• Sequence diagram
• Collaboration diagram
UML Use Case Diagram
A UML USE CASE DIAGRAM
• A use case diagram is used to represent the
dynamic behavior of a system.
• It encapsulates the system's functionality by
incorporating use cases, actors, and their
relationships.
• It models the tasks, services, and functions
required by a system/subsystem of an application.
• It depicts the high-level functionality of a system
and also tells how the user handles a system.
Purpose of Use Case Diagram
• The main purpose of a use case diagram is to portray the
dynamic aspect of a system.
• It accumulates the system's requirement, which includes
both internal as well as external influences.
• It invokes persons, use cases, and several things that
invoke the actors and elements accountable for the
implementation of use case diagrams.
• It represents how an entity from the external environment
can interact with a part of the system.
Purpose of Use Case Diagram
Following are the purposes of a use case diagram given
below:
1. It gathers the system's needs.
2. It depicts the external view of the system.
3. It recognizes the internal as well as external factors that
influence the system.
4. It represents the interaction between the actors.
How To Use a Use Case Diagram
• It is essential to analyze the whole system before starting
with drawing a use case diagram, and then the system's
functionalities are found.
• And once every single functionality is identified, they are
then transformed into the use cases to be used in the use
case diagram.
• After that, enlist the actors that will interact with the
system.
• The actors are the person or a thing that invokes the
functionality of a system.
• It may be a system or a private entity, such that it requires
an entity to be pertinent to the functionalities of the system
• The View Items is further extended by several use cases
such as; Search Items, Browse Items, View
Recommended Items, Add to Shopping Cart, Add to
Wish list.
• All of these extended use cases provide some functions to
customers, which allows them to search for an item.
• Both View Recommended Item and Add to Wish List include
the Customer Authentication use case, as they necessitate
authenticated customers, and simultaneously item can be
added to the shopping cart without any user authentication.
• Similarly, the Checkout use case also includes the following
use cases, as shown below.
• It requires an authenticated Web Customer, which can be
done by login page, user authentication cookie
("Remember me"), or Single Sign-On (SSO).
• SSO needs an external identity provider's participation,
while Web site authentication service is utilized in all these
use cases.
• The Checkout use case involves Payment use case that can
be done either by the credit card and external credit
payment services or with PayPal.
IMPORTANCE OF USE CASE DIAGRAM
Following are some important tips that are to be kept in
mind while drawing a use case diagram:
1.A simple and complete use case diagram should be
articulated.
2.A use case diagram should represent the most
significant interaction among the multiple interactions.
3.At least one module of a system should be represented
by the use case diagram.
4.If the use case diagram is large and more complex, then
it should be drawn more generalized.