Unit 2.pptx
Unit 2.pptx
and
Modelling
● UML diagrams are not only made for developers but also for
business users, common people, and anybody interested to
understand the system.
FEATURES OF UML
• It is a generalized modeling language.
Note: It is not
necessary that
each actor should
interact with all
the use cases, but
it can happen.
5. USE CASE DIAGRAM - Purpose
Use case diagrams are typically develop in early stage of development
and people often apply use case modeling for the following purposes:
▪ Specify the context of a system
▪ Capture the requirements of a system
▪ Validate a systems architecture
▪ Drive implementation and generate test cases
▪ Developed by analysts together with domain experts
SAMPLE
USE CASE
DIAGRAM
5. USE CASE DIAGRAM - Notations
1. Actor: The actor can be a human or other external system i.e.,
someone who interact with use case.
2. Use case: Each Actor must be linked to a use case, while some
use cases may not be linked to actors.
Use Case
5. USE CASE DIAGRAM - Notations
3. Communication link: The participation of an actor in a use
case is shown by connecting an actor to a use case by a solid link.
System
5. USE CASE DIAGRAM - Relationships
Association Link: A Use Case diagram illustrates a set of use cases
for a system, i.e. the actors and the relationships between the
actors and use cases.
5. USE CASE DIAGRAM - Relationships
Include Relationship: The include relationship adds additional
functionality not specified in the base use case. It is used to include
common behavior from an included use case into a base use case in
order to support the reuse of common behavior.
5. USE CASE DIAGRAM - Relationships
Extend Relationship: The extend relationships are important
because they show optional functionality or system behavior. It is
used to include optional behavior from an extending use case in an
extended use case.
5. USE CASE DIAGRAM - Relationships
Generalization Relationship: It means that a child use case inherits the
behavior and meaning of the parent use case. The child may add or
override the behavior of the parent.
HOW TO DRAW A USE CASE DIAGRAM?
1. Identify the Actors (role of users) of the system.
2. For each category of users, identify all roles played by the users.
3. Identify what are the users required the system to be performed
to achieve these goals.
4. Create use cases for every goal.
5. Structure the use cases.
6. Prioritize, review, estimate and validate the users.
5. USE CASE DIAGRAM - Benefits
● It is a powerful technique for the elicitation and
documentation of black-box functional requirements.
● It provides an excellent way for communicating with
customers and users as they are written in natural language.
● It can help manage the complexity of large projects by
partitioning the problem into major user features (i.e., use
cases) and by specifying applications from the users’
perspective.
6. SEQUENCE DIAGRAM
● Sequence Diagrams are interaction diagrams that detail how
operations are carried out.
● It captures high-level interactions between an user and the system,
between the system and other systems, or between subsystems.
● It show elements as they interact over time and they are organized
according to object (horizontally) and time (vertically):
● Object Dimension: The horizontal axis shows the elements that
are involved in the interaction.
● Time Dimension: The vertical axis represents time proceedings
(or progressing) down the page.
6. SEQUENCE DIAGRAM-Relationships
6. SEQUENCE DIAGRAM-Relationships
6. SEQUENCE DIAGRAM - Example
6. SEQUENCE DIAGRAM - Example
6. SEQUENCE DIAGRAM - Example
● Join – We use the join notation when two or more states concurrently
converge into one on the occurrence of an event or events.
8. STATECHART DIAGRAM- Basic Components
● Fork – We use the fork notation to represent a state splitting into two or
more concurrent states.
● Self transition – We use self transitions to represent when the state of the
object does not change upon the occurrence of an event.
8. STATECHART DIAGRAM- Basic Components
● Final state – We use a filled circle within a circle notation to represent
the final state in a state machine diagram.