Use Case Diagrams
Use Case Diagrams
• Have you ever had a brilliant project idea that makes a lot of sense to
you but you are failing to put it across to another person, e.g.
Supervisor, client etc. ?
• UML Use case diagram can assist in clarifying the high level operations
of a system without finer details of how the system will be
implemented.
What is a Use Case Diagram?
• Use cases specify the expected behaviour (what), and not the exact
method of making it happen (how).
• Use cases once specified can be denoted by both textual and visual
representation (such as UML).
Cont.…
• A use case diagram is usually simple. It does not show the detail of the use
cases:
• It only summarizes some of the relationships between use cases, actors,
and systems.
• It does not show the order in which steps are performed to achieve the
goals of each use case.
Origin of Use Case
• These days use case modeling is often associated with UML, although it
has been introduced before UML existed.
• Actor
• Anything that interacts with the system.
• Can be a user (different types of users), or another system, or external
device.
• A system can have two types of actors, primary and secondary actors
• Primary actor can initiate use cases.
• Secondary actors are more of reactionary actors.
Notation Description and their Visual
Representation
Use Case
• Each actor must be linked to at least one use case, while some use
cases may not be linked to actors. e.g. (included use cases)
Notation Description and their Visual
Representation
Communication link
Boundary of system
• The system boundary is potentially the entire system as
defined in the requirements document.
• For large and complex systems, each module may be the
system boundary.
• For example, for an ERP system for an organization, each of
the modules such as personnel, payroll, accounting, etc.
• Can form a system boundary for use cases specific to each
of these business functions.
• Is a data store part of the system?
Structuring Use Case Diagram with
Relationships
• Use cases share different kinds of relationships.
• To transfer funds, the system will have to verify sufficient funds first
• Similarly, to make a payment, the system will have to verify sufficient
funds first
• NB. The included use cases are not necessarily initiated by the user
but the system will provide the use cases when their base cases
are initiated by the user.
Relationships.
Generalization
• Are there any external events the system must know about?
• Always structure and organize the use case diagram from the perspective
of actors.
• Use case diagrams are based upon functionality and thus should focus on
the "what" and not the "how".
THE END!!!