Topic: - Use Case Diagrams - Sequence Diagram
Topic: - Use Case Diagrams - Sequence Diagram
1
Overview
• Introduction to UML(unified modeling
language).
• Use case diagrams.
• Sequence diagrams.
2
Unified modeling language
• It is a partial graphical representation of a model of a
system.
o Systems under design, implementation, or already
existing phase.
• Contains:
o Nodes
o Edges / paths
• Type of diagram is defined by Graphical symbol shown
on the diagram
o Class for class diagram
o Actors and use cases in use case diagram.
3
4
Use case
• Use case: List of actions or events, defining the
interactions between role(actors) and system.
• The actor can be a human, external system or
time.
• Defines mission and stakeholder goals.
• For example:
• Student: Take admission, attend classes, pay
fees.
5
Use case diagrams
6
Steps to be taken to build Use case diagram
7
Use Case Diagram for Restaurant
8
Use case diagrams: Advantages
• List of goal names provide summary of what the
system will offer.
• Also provide project planning skeleton.
• The extension conditions of each use case
provide a framework.
• The full use case set shows that the investigators
have thought through every user’s needs, every
goal they have with respect to the system, and
every business variant involved.
9
Use case diagrams: Limitations
• Use cases are not well suited to capturing non-
interaction based requirements of a system.
• For some products and systems, use cases are
complex to write and to understand, for both end
users and developers.
• As there are no fully standard definitions of use
cases, each project must form its own
interpretation.
10
Sequence Diagrams
11
Sequence Diagram for email service
12
Sequence Diagrams
• Class and object diagrams provide a static view of the
system we are modeling
• In many cases, this is not sufficient for us to truly
understand how classes interact or how the system must
respond to varied run-time states
13
How to make Sequence Diagrams
1. Pick a scenario that you want to model
2. Try to identify the objects that will be involved in the
scenario
3. Line them across the top in the approximate order that
they're (listed in the order that they are used for the
scenario)
4. Draw dotted lines down indicating lifelines
5. Identify the first event (triggering event)
6. Draw a horizontal arrow from the object that sends a
message to the object that receives it
7. identify the next event and the objects involved
8. Redo steps 6 and 7 until the diagram is complete
14
Sequence Diagram for fast food service
15
Benefits of sequence diagrams
16
References
• Wikipedia: -
• https://en.wikipedia.org/wiki/Use_Case_Diagra
m
• https://en.wikipedia.org/wiki/Sequence_diagra
m
17
Thank you