Use case Modelling
Use case Modelling
Identify the actors, scenario and use cases for the example
The Use Case Model describes the proposed functionality of the new system.
During requirement gathering, the primary requirements of the system are understood. These
basic requirements of the system are called the functional requirements.
The use cases are the text stories that are designed in order to understand the functionality
of the system.
Actors:
An Actor is a user of the system. This includes both human users and other computer systems.
An Actor uses a Use Case to perform some piece of work
Example : Customer, Inventory database, Accountant
Primary actor - The primary actors are the actors that interact with the system in order to achieve the
user goals. Eg. Librarian is the primary actor for the use case issuing of books.
Supporting actor – The supporting actors are used in conjunction with the primary actors in order to
support for the main services.
Scenario:
A scenario is a specific sequence of actions or interactions between actors and the system.
It is also called a use case instance.
Eg. Scenario of successfully purchasing items, issuing a book from library
1. Include relationship:
In UML modeling, an include relationship is a relationship in which one use case (the base use
case) includes the functionality of another use case (the inclusion use case).
The include relationship supports the reuse of functionality in a use-case model.
Include relationship between use cases is shown by a dashed arrow with an open arrowhead from
the including (base) use case to the included (common part) use case. The arrow is labeled with
the keyword «include».
2. Extend relationships
In UML modeling, you can use an extend relationship to specify that one use case (extension)
extends the behavior of another use case (base).
Extend relationship between use cases is shown by a dashed arrow with an open arrowhead from
the extending use case to the extended (base) use case. The arrow is labeled with the keyword
<<extend>>.
Here are a few things to consider when using the <<extend>> relationship.
1. The extending use case is dependent on the extended (base) use case.
2. The extending use case is usually optional
3. The extended (base) use case must be meaningful on its own
3.Generalization
In this relationship there are two types of use cases – the parent use case and the child use case.
A parent use case may be specialized into one or more child use case that represent more specific
forms of the parent. The child use case inherits all the behavior, structures and relationships of
parents.
The text word used for generalization relationship is “ kind-of”