Lab 3 Introduction to the UML - how to create a use case diagram

F
Farah AhmedSenior Lecturer, Educational Technologist, Project Manager um Sir Syed University of Engineering & Technology
Lab 3: Use case diagram
Sec A, D, E.
Instructor
Farah Ahmed
Agenda / Topics
• UML diagram
• Type of UML diagram
• Use case diagram
• Use case scenario
• Purpose of Use case diagram
• Example of Use case diagram
• Conclusion
UML diagram
• UML stands for Unified Modeling Language. It’s a rich language to
model software solutions, application structures, system
behavior and business processes.
• A UML diagram is a diagram based on the UML (Unified Modeling
Language) with the purpose of visually representing a system
along with its main actors, roles, actions, artifacts or classes, in
order to better understand, alter, maintain, or document
information about the system.
• There are 14 UML diagram types to help you model these
behaviors.
List of UML diagram
So what are the different UML
diagram types? There are two main
categories; structure
diagrams and behavioral diagrams.
Structure Diagrams
Class Diagram
Component Diagram
Deployment Diagram
Object Diagram
Package Diagram
Profile Diagram
Composite Structure Diagram
Behavioral Diagrams
Use Case Diagram
Activity Diagram
State Machine Diagram
Sequence Diagram
Communication Diagram
Interaction Overview Diagram
Timing Diagram
Categories of
UML diagram
Structure diagrams show the things
in the modeled system. In a more
technical term, they show different
objects in a system.
Behavioral diagrams show what
should happen in a system. They
describe how the objects interact
with each other to create a
functioning system.
List of UML diagram
UML diagram
The most frequently used ones in software
development are:
• Use Case diagrams,
• Class diagrams, and
• Sequence diagrams.
Use case diagram
An Overview of Modeling Use Case
Diagram
• Use-case diagrams present a high-level view of
system usage as viewed from an outsider's (actor's)
perspective.
• These diagrams show the functionality of a system
or a class and how the system interacts with the
outside world.
• Use-case diagrams can be used during analysis to
capture the system requirements and to
understand how the system should work.
• During the design phase, use-case diagrams specify
the behavior of the system as implemented.
a Use case
diagram
A UML use case diagram is the primary form of
system/software requirements for a new software
program underdeveloped.
Use cases specify the expected behavior (what),
and not the exact method of making it happen
(how).
Use cases once specified can be denoted both
textual and visual representation (i.e. use case
diagram).
A key concept of use case modeling is that it helps
us design a system from the end user's perspective.
It is an effective technique for communicating
system behavior in the user's terms by specifying all
externally visible system behavior.
Purpose of a use case diagram
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
Use case diagrams are typically developed in the early stage of development and people often apply use case modeling for the
following purposes:
Use Case Diagram at a Glance
A standard form of use case diagram is defined in the
Unified Modeling Language in the Use Case Diagram
example:
Use Case Diagram at a Glance
Actor
• Someone interacts with use case (system function).
• Named by noun.
• Actor plays a role in the business
• Similar to the concept of user, but a user can play
different roles
• For example:
• A prof. can be instructor and also researcher
• plays 2 roles with two systems
• Actor triggers use case(s).
• Actor has a responsibility toward the system (inputs),
and Actor has expectations from the system (outputs).
Use case Diagram
Use Case
• System function (process - automated or
manual)
• Named by verb + Noun (or Noun Phrase).
• i.e. Do something
• Each Actor must be linked to a use case,
while some use cases may not be linked to
actors.
Use case Diagram
Communication Link
•The participation of an actor in
is shown by connecting an actor
case by a solid link.
•Actors may be connected to use
associations, indicating that the
the use case communicate with
using messages.
Use case Diagram
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.
• The entire system can span all of these modules
depicting the overall system boundary
Structuring
Use Case
Diagram with
Relationships
• Use cases share different kinds of relationships.
Defining the relationship between two use cases is
the decision of the software analysts of the use case
diagram. A relationship between two use cases is
basically modeling the dependency between the two
use cases. The reuse of an existing use case by using
different types of relationships reduces the overall
effort required in developing a system.
Use case relationship
Extends
•Indicates that an "Invalid Password" use case
may include (subject to specified in the
extension) the behavior specified by base use
case "Login Account".
•Depict with a directed arrow having a dotted
line. The tip of arrowhead points to the base
use case and the child use case is connected at
the base of the arrow.
•The stereotype "<<extends>>" identifies as an
extend relationship
Use case relationship
Include
• When a use case is depicted as using the functionality of another
use case, the relationship between the use cases is named as include
or uses relationship.
• A use case includes the functionality described in another use case
as a part of its business process flow.
• A uses relationship from base use case to child use case indicates
that an instance of the base use case will include the behavior as
specified in the child use case.
• An include relationship is depicted with a directed arrow having a
dotted line. The tip of arrowhead points to the child use case and the
parent use case connected at the base of the arrow.
• The stereotype "<<include>>" identifies the relationship as an
include relationship.
Use case relationship
Generalization
•A generalization relationship is a parent-child
relationship between use cases.
•The child use case is an enhancement of the parent
use case.
•Generalization is shown as a directed arrow with a
triangle arrowhead.
•The child use case is connected at the base of the
arrow. The tip of the arrow is connected to the
parent use case.
Example of Use Case
Diagram
Use Case Example - 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.
Example of Use Case
Diagram
Use Case Example - Include
Relationship
• The include relationship adds
additional functionality not
specified in the base use case.
The <<Include>> relationship 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.
Example of Use Case
Diagram
Use Case Example - Extend
Relationship
• The extend relationships are
important because they show
optional functionality or system
behavior.
• The <<extend>> relationship is
used to include optional behavior
from an extending use case in an
extended use case.
• Look at the use case diagram
example. It shows an extend
connector and an extension point
"Search".
Example of Use Case
Diagram
Use Case Example -
Generalization Relationship
• A generalization relationship
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.
• The figure provides a use case
example by showing two
generalization connectors that
connect between the three use
cases.
Example of Use Case Diagram – Vehicle Sales Systems
As you can see even a
system as big as a vehicle
sales system contains not
more than 10 use cases!
That's the beauty of use
case modeling.
How to identify actor?
Often, people find it easiest to start the requirements elicitation process by identifying the actors. The
following questions can help you identify the actors of your system (Schneider and Winters - 1998):
• Who uses the system?
• Who installs the system?
• Who starts up the system?
• Who maintains the system?
• Who shuts down the system?
• What other systems use this system?
• Who gets information from this system?
• Who provides information to the system?
• Does anything happen automatically at a present time?
How to identify Use Cases?
Identifying the Use Cases, and then the scenario-based elicitation process carries on by asking what
externally visible, observable value that each actor desires. The following questions can be asked to
identify use cases, once your actors have been identified (Schneider and Winters - 1998):
• What functions will the actor want from the system?
• Does the system store information? What actors will create, read, update or delete this information?
• Does the system need to notify an actor about changes in the internal state?
• Are there any external events the system must know about? What actor informs the system of those
events?
Use case scenario
What is a use case scenario
A use case represents the actions
that are required to enable or
abandon a goal. A use case has
multiple “paths” that can be taken
by any user at any one time. A use
case scenario is a single path
through the use case.
A use case defines all of the paths that lead to the success of
the use case.The use case also defines all the paths that lead
to the abandonment of the use case without achieving its goal.
Each unique combination of those paths that can be taken by
an actor during a single “pass” through the use case is a use
case scenario.
When do you use each
construct?
• A scenario is an actual sequence of interactions
(i.e., an instance) describing one specific situation;
a use case is a general sequence of interactions (i.e.,
a class) describing all possible scenarios
associated with a situation.
1 von 30

Recomendados

Software design principles von
Software design principlesSoftware design principles
Software design principlesRitesh Singh
1.7K views64 Folien
Crime report and missing person finder app ooad.pptx von
Crime report and missing person finder app ooad.pptxCrime report and missing person finder app ooad.pptx
Crime report and missing person finder app ooad.pptxAsnaShergeel
124 views18 Folien
Software architecture unit 4 von
Software architecture unit 4Software architecture unit 4
Software architecture unit 4yawani05
402 views63 Folien
Activity diagram von
Activity diagramActivity diagram
Activity diagrambhupendra kumar
3.3K views8 Folien
Unit 5- Architectural Design in software engineering von
Unit 5- Architectural Design in software engineering Unit 5- Architectural Design in software engineering
Unit 5- Architectural Design in software engineering arvind pandey
7K views93 Folien
Activity diagram tutorial von
Activity diagram tutorialActivity diagram tutorial
Activity diagram tutorialDeclan Chellar
15.1K views64 Folien

Más contenido relacionado

Was ist angesagt?

Computer Aided Software Engineering von
Computer Aided Software EngineeringComputer Aided Software Engineering
Computer Aided Software EngineeringČhauÐhařÿ Faísal Ãlï
5.8K views19 Folien
Use case diagrams 2014 von
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014Inge Powell
3.3K views43 Folien
Software engineering project management von
Software engineering project managementSoftware engineering project management
Software engineering project managementjhudyne
39.8K views34 Folien
Architecture design in software engineering von
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineeringPreeti Mishra
67.8K views50 Folien
Use Case Diagram von
Use Case DiagramUse Case Diagram
Use Case DiagramAshesh R
68.1K views48 Folien
Prototype model 130714101556-phpapp02 von
Prototype model 130714101556-phpapp02Prototype model 130714101556-phpapp02
Prototype model 130714101556-phpapp02prasanna chitra
435 views8 Folien

Was ist angesagt?(20)

Use case diagrams 2014 von Inge Powell
Use case diagrams 2014Use case diagrams 2014
Use case diagrams 2014
Inge Powell3.3K views
Software engineering project management von jhudyne
Software engineering project managementSoftware engineering project management
Software engineering project management
jhudyne39.8K views
Architecture design in software engineering von Preeti Mishra
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
Preeti Mishra67.8K views
Use Case Diagram von Ashesh R
Use Case DiagramUse Case Diagram
Use Case Diagram
Ashesh R68.1K views
Prototype model 130714101556-phpapp02 von prasanna chitra
Prototype model 130714101556-phpapp02Prototype model 130714101556-phpapp02
Prototype model 130714101556-phpapp02
prasanna chitra435 views
Activity diagram-UML diagram von Ramakant Soni
Activity diagram-UML diagramActivity diagram-UML diagram
Activity diagram-UML diagram
Ramakant Soni12.4K views
Software Development Methodologies von Nicholas Davis
Software Development MethodologiesSoftware Development Methodologies
Software Development Methodologies
Nicholas Davis3.8K views
SE_Lec 07_UML CLASS DIAGRAM von Amr E. Mohamed
SE_Lec 07_UML CLASS DIAGRAMSE_Lec 07_UML CLASS DIAGRAM
SE_Lec 07_UML CLASS DIAGRAM
Amr E. Mohamed3.7K views
Software Engineering Layered Technology Software Process Framework von JAINAM KAPADIYA
Software Engineering  Layered Technology Software Process FrameworkSoftware Engineering  Layered Technology Software Process Framework
Software Engineering Layered Technology Software Process Framework
JAINAM KAPADIYA7.1K views
Uml Activity Diagram von Niloy Rocker
Uml Activity DiagramUml Activity Diagram
Uml Activity Diagram
Niloy Rocker6.5K views
Software Engineering - chp3- design von Lilia Sfaxi
Software Engineering - chp3- designSoftware Engineering - chp3- design
Software Engineering - chp3- design
Lilia Sfaxi11.7K views
An Introduction to Multilayered Software Architecture von Andrei Pîrjoleanu
An Introduction to Multilayered Software ArchitectureAn Introduction to Multilayered Software Architecture
An Introduction to Multilayered Software Architecture
Andrei Pîrjoleanu950 views
Software Engineering (Introduction to Software Engineering) von ShudipPal
Software Engineering (Introduction to Software Engineering)Software Engineering (Introduction to Software Engineering)
Software Engineering (Introduction to Software Engineering)
ShudipPal1.3K views
Use Case Diagram von Kumar
Use Case DiagramUse Case Diagram
Use Case Diagram
Kumar 27.6K views
Requirement Engineering Lec.1 & 2 & 3 von Ahmed Alageed
Requirement Engineering Lec.1 & 2 & 3Requirement Engineering Lec.1 & 2 & 3
Requirement Engineering Lec.1 & 2 & 3
Ahmed Alageed6.9K views

Similar a Lab 3 Introduction to the UML - how to create a use case diagram

Use Case Diagram.pptx von
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptxGenta Sahuri
54 views22 Folien
Uml diagrams usecase von
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecaseSandhyaTatekalva
407 views15 Folien
Use Case Analysis and Diagramming von
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and DiagrammingOrnella Dunn
560 views31 Folien
Use case modeling von
Use case modelingUse case modeling
Use case modelingWajahat Hasnain
233 views32 Folien
Use case modeling & analysis v 1 von
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1JIGAR MAKHIJA
1.3K views22 Folien
Presentation Use Case Diagram and Use Case Specification.pptx von
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptxazida3
23 views40 Folien

Similar a Lab 3 Introduction to the UML - how to create a use case diagram(20)

Use Case Analysis and Diagramming von Ornella Dunn
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
Ornella Dunn560 views
Use case modeling & analysis v 1 von JIGAR MAKHIJA
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
JIGAR MAKHIJA1.3K views
Presentation Use Case Diagram and Use Case Specification.pptx von azida3
Presentation Use Case Diagram and Use Case Specification.pptxPresentation Use Case Diagram and Use Case Specification.pptx
Presentation Use Case Diagram and Use Case Specification.pptx
azida323 views
CASE Tools lab.ppt von RAJESH S
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
RAJESH S3 views
ASP.NET System design 2 von Sisir Ghosh
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh2.7K views
SE_RE-II-CH5 (3).pdf von AZKANAAZ1
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
AZKANAAZ110 views
Use case Diagram von Rahul Pola
Use case Diagram Use case Diagram
Use case Diagram
Rahul Pola5.7K views
Use Case Modelling.pptx von azida3
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
azida314 views
analysis and design with uml von sabin kafle
analysis and design with umlanalysis and design with uml
analysis and design with uml
sabin kafle829 views

Último

Object Oriented Programming with JAVA von
Object Oriented Programming with JAVAObject Oriented Programming with JAVA
Object Oriented Programming with JAVADemian Antony D'Mello
140 views28 Folien
DESIGN OF SPRINGS-UNIT4.pptx von
DESIGN OF SPRINGS-UNIT4.pptxDESIGN OF SPRINGS-UNIT4.pptx
DESIGN OF SPRINGS-UNIT4.pptxgopinathcreddy
19 views47 Folien
SUMIT SQL PROJECT SUPERSTORE 1.pptx von
SUMIT SQL PROJECT SUPERSTORE 1.pptxSUMIT SQL PROJECT SUPERSTORE 1.pptx
SUMIT SQL PROJECT SUPERSTORE 1.pptxSumit Jadhav
13 views26 Folien
Introduction to CAD-CAM.pptx von
Introduction to CAD-CAM.pptxIntroduction to CAD-CAM.pptx
Introduction to CAD-CAM.pptxsuyogpatil49
5 views15 Folien
Design of machine elements-UNIT 3.pptx von
Design of machine elements-UNIT 3.pptxDesign of machine elements-UNIT 3.pptx
Design of machine elements-UNIT 3.pptxgopinathcreddy
32 views31 Folien
Proposal Presentation.pptx von
Proposal Presentation.pptxProposal Presentation.pptx
Proposal Presentation.pptxkeytonallamon
29 views36 Folien

Último(20)

SUMIT SQL PROJECT SUPERSTORE 1.pptx von Sumit Jadhav
SUMIT SQL PROJECT SUPERSTORE 1.pptxSUMIT SQL PROJECT SUPERSTORE 1.pptx
SUMIT SQL PROJECT SUPERSTORE 1.pptx
Sumit Jadhav 13 views
Introduction to CAD-CAM.pptx von suyogpatil49
Introduction to CAD-CAM.pptxIntroduction to CAD-CAM.pptx
Introduction to CAD-CAM.pptx
suyogpatil495 views
Design of machine elements-UNIT 3.pptx von gopinathcreddy
Design of machine elements-UNIT 3.pptxDesign of machine elements-UNIT 3.pptx
Design of machine elements-UNIT 3.pptx
gopinathcreddy32 views
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L... von Anowar Hossain
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
DevOps to DevSecOps: Enhancing Software Security Throughout The Development L...
Anowar Hossain13 views
Advances in micro milling: From tool fabrication to process outcomes von Shivendra Nandan
Advances in micro milling: From tool fabrication to process outcomesAdvances in micro milling: From tool fabrication to process outcomes
Advances in micro milling: From tool fabrication to process outcomes
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx von lwang78
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx
2023Dec ASU Wang NETR Group Research Focus and Facility Overview.pptx
lwang7853 views
Generative AI Models & Their Applications von SN
Generative AI Models & Their ApplicationsGenerative AI Models & Their Applications
Generative AI Models & Their Applications
SN8 views
NEW SUPPLIERS SUPPLIES (copie).pdf von georgesradjou
NEW SUPPLIERS SUPPLIES (copie).pdfNEW SUPPLIERS SUPPLIES (copie).pdf
NEW SUPPLIERS SUPPLIES (copie).pdf
georgesradjou15 views
Instrumentation & Control Lab Manual.pdf von NTU Faisalabad
Instrumentation & Control Lab Manual.pdfInstrumentation & Control Lab Manual.pdf
Instrumentation & Control Lab Manual.pdf
NTU Faisalabad 5 views
fakenews_DBDA_Mar23.pptx von deepmitra8
fakenews_DBDA_Mar23.pptxfakenews_DBDA_Mar23.pptx
fakenews_DBDA_Mar23.pptx
deepmitra814 views
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) von Tsuyoshi Horigome
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)

Lab 3 Introduction to the UML - how to create a use case diagram

  • 1. Lab 3: Use case diagram Sec A, D, E. Instructor Farah Ahmed
  • 2. Agenda / Topics • UML diagram • Type of UML diagram • Use case diagram • Use case scenario • Purpose of Use case diagram • Example of Use case diagram • Conclusion
  • 3. UML diagram • UML stands for Unified Modeling Language. It’s a rich language to model software solutions, application structures, system behavior and business processes. • A UML diagram is a diagram based on the UML (Unified Modeling Language) with the purpose of visually representing a system along with its main actors, roles, actions, artifacts or classes, in order to better understand, alter, maintain, or document information about the system. • There are 14 UML diagram types to help you model these behaviors.
  • 4. List of UML diagram So what are the different UML diagram types? There are two main categories; structure diagrams and behavioral diagrams. Structure Diagrams Class Diagram Component Diagram Deployment Diagram Object Diagram Package Diagram Profile Diagram Composite Structure Diagram Behavioral Diagrams Use Case Diagram Activity Diagram State Machine Diagram Sequence Diagram Communication Diagram Interaction Overview Diagram Timing Diagram
  • 5. Categories of UML diagram Structure diagrams show the things in the modeled system. In a more technical term, they show different objects in a system. Behavioral diagrams show what should happen in a system. They describe how the objects interact with each other to create a functioning system.
  • 6. List of UML diagram
  • 7. UML diagram The most frequently used ones in software development are: • Use Case diagrams, • Class diagrams, and • Sequence diagrams.
  • 9. An Overview of Modeling Use Case Diagram • Use-case diagrams present a high-level view of system usage as viewed from an outsider's (actor's) perspective. • These diagrams show the functionality of a system or a class and how the system interacts with the outside world. • Use-case diagrams can be used during analysis to capture the system requirements and to understand how the system should work. • During the design phase, use-case diagrams specify the behavior of the system as implemented.
  • 10. a Use case diagram A UML use case diagram is the primary form of system/software requirements for a new software program underdeveloped. Use cases specify the expected behavior (what), and not the exact method of making it happen (how). Use cases once specified can be denoted both textual and visual representation (i.e. use case diagram). A key concept of use case modeling is that it helps us design a system from the end user's perspective. It is an effective technique for communicating system behavior in the user's terms by specifying all externally visible system behavior.
  • 11. Purpose of a use case diagram 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 Use case diagrams are typically developed in the early stage of development and people often apply use case modeling for the following purposes:
  • 12. Use Case Diagram at a Glance A standard form of use case diagram is defined in the Unified Modeling Language in the Use Case Diagram example:
  • 13. Use Case Diagram at a Glance Actor • Someone interacts with use case (system function). • Named by noun. • Actor plays a role in the business • Similar to the concept of user, but a user can play different roles • For example: • A prof. can be instructor and also researcher • plays 2 roles with two systems • Actor triggers use case(s). • Actor has a responsibility toward the system (inputs), and Actor has expectations from the system (outputs).
  • 14. Use case Diagram Use Case • System function (process - automated or manual) • Named by verb + Noun (or Noun Phrase). • i.e. Do something • Each Actor must be linked to a use case, while some use cases may not be linked to actors.
  • 15. Use case Diagram Communication Link •The participation of an actor in is shown by connecting an actor case by a solid link. •Actors may be connected to use associations, indicating that the the use case communicate with using messages.
  • 16. Use case Diagram 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. • The entire system can span all of these modules depicting the overall system boundary
  • 17. Structuring Use Case Diagram with Relationships • Use cases share different kinds of relationships. Defining the relationship between two use cases is the decision of the software analysts of the use case diagram. A relationship between two use cases is basically modeling the dependency between the two use cases. The reuse of an existing use case by using different types of relationships reduces the overall effort required in developing a system.
  • 18. Use case relationship Extends •Indicates that an "Invalid Password" use case may include (subject to specified in the extension) the behavior specified by base use case "Login Account". •Depict with a directed arrow having a dotted line. The tip of arrowhead points to the base use case and the child use case is connected at the base of the arrow. •The stereotype "<<extends>>" identifies as an extend relationship
  • 19. Use case relationship Include • When a use case is depicted as using the functionality of another use case, the relationship between the use cases is named as include or uses relationship. • A use case includes the functionality described in another use case as a part of its business process flow. • A uses relationship from base use case to child use case indicates that an instance of the base use case will include the behavior as specified in the child use case. • An include relationship is depicted with a directed arrow having a dotted line. The tip of arrowhead points to the child use case and the parent use case connected at the base of the arrow. • The stereotype "<<include>>" identifies the relationship as an include relationship.
  • 20. Use case relationship Generalization •A generalization relationship is a parent-child relationship between use cases. •The child use case is an enhancement of the parent use case. •Generalization is shown as a directed arrow with a triangle arrowhead. •The child use case is connected at the base of the arrow. The tip of the arrow is connected to the parent use case.
  • 21. Example of Use Case Diagram Use Case Example - 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.
  • 22. Example of Use Case Diagram Use Case Example - Include Relationship • The include relationship adds additional functionality not specified in the base use case. The <<Include>> relationship 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.
  • 23. Example of Use Case Diagram Use Case Example - Extend Relationship • The extend relationships are important because they show optional functionality or system behavior. • The <<extend>> relationship is used to include optional behavior from an extending use case in an extended use case. • Look at the use case diagram example. It shows an extend connector and an extension point "Search".
  • 24. Example of Use Case Diagram Use Case Example - Generalization Relationship • A generalization relationship 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. • The figure provides a use case example by showing two generalization connectors that connect between the three use cases.
  • 25. Example of Use Case Diagram – Vehicle Sales Systems As you can see even a system as big as a vehicle sales system contains not more than 10 use cases! That's the beauty of use case modeling.
  • 26. How to identify actor? Often, people find it easiest to start the requirements elicitation process by identifying the actors. The following questions can help you identify the actors of your system (Schneider and Winters - 1998): • Who uses the system? • Who installs the system? • Who starts up the system? • Who maintains the system? • Who shuts down the system? • What other systems use this system? • Who gets information from this system? • Who provides information to the system? • Does anything happen automatically at a present time?
  • 27. How to identify Use Cases? Identifying the Use Cases, and then the scenario-based elicitation process carries on by asking what externally visible, observable value that each actor desires. The following questions can be asked to identify use cases, once your actors have been identified (Schneider and Winters - 1998): • What functions will the actor want from the system? • Does the system store information? What actors will create, read, update or delete this information? • Does the system need to notify an actor about changes in the internal state? • Are there any external events the system must know about? What actor informs the system of those events?
  • 29. What is a use case scenario A use case represents the actions that are required to enable or abandon a goal. A use case has multiple “paths” that can be taken by any user at any one time. A use case scenario is a single path through the use case. A use case defines all of the paths that lead to the success of the use case.The use case also defines all the paths that lead to the abandonment of the use case without achieving its goal. Each unique combination of those paths that can be taken by an actor during a single “pass” through the use case is a use case scenario.
  • 30. When do you use each construct? • A scenario is an actual sequence of interactions (i.e., an instance) describing one specific situation; a use case is a general sequence of interactions (i.e., a class) describing all possible scenarios associated with a situation.

Hinweis der Redaktion

  1. 1
  2. As you can see even a system as big as a vehicle sales system contains not more than 10 use cases! That's the beauty of use case modeling. The use case model also shows the use of extend and include. Besides, there are associations that connect between actors and use cases.