SlideShare ist ein Scribd-Unternehmen logo
1 von 30
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.

Weitere ähnliche Inhalte

Was ist angesagt?

Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologiesnaina-rani
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9koolkampus
 
Ch8-Software Engineering 9
Ch8-Software Engineering 9Ch8-Software Engineering 9
Ch8-Software Engineering 9Ian Sommerville
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdfbcanawakadalcollege
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram Rahul Pola
 
System Models in Software Engineering SE7
System Models in Software Engineering SE7System Models in Software Engineering SE7
System Models in Software Engineering SE7koolkampus
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineeringDarshit Metaliya
 
Lecture 6 agile software development
Lecture 6   agile software developmentLecture 6   agile software development
Lecture 6 agile software developmentIIUI
 
Requirements analysis
Requirements analysisRequirements analysis
Requirements analysisasimnawaz54
 
SE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context ModelSE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context ModelAmr E. Mohamed
 
System requirements specification (srs)
System requirements specification (srs)System requirements specification (srs)
System requirements specification (srs)Savyasachi14
 
Requirement specification (SRS)
Requirement specification (SRS)Requirement specification (SRS)
Requirement specification (SRS)kunj desai
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)Ravinder Kamboj
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelmohamed khalaf alla mohamedain
 
Design and Implementation in Software Engineering
Design and Implementation in Software EngineeringDesign and Implementation in Software Engineering
Design and Implementation in Software EngineeringKourosh Sajjadi
 
REQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGREQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGSaqib Raza
 

Was ist angesagt? (20)

Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
Ch8-Software Engineering 9
Ch8-Software Engineering 9Ch8-Software Engineering 9
Ch8-Software Engineering 9
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf
 
Use case Diagram
Use case Diagram Use case Diagram
Use case Diagram
 
System Models in Software Engineering SE7
System Models in Software Engineering SE7System Models in Software Engineering SE7
System Models in Software Engineering SE7
 
Design Concept software engineering
Design Concept software engineeringDesign Concept software engineering
Design Concept software engineering
 
Lecture 6 agile software development
Lecture 6   agile software developmentLecture 6   agile software development
Lecture 6 agile software development
 
Requirements analysis
Requirements analysisRequirements analysis
Requirements analysis
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
SE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context ModelSE_Lec 05_System Modelling and Context Model
SE_Lec 05_System Modelling and Context Model
 
System requirements specification (srs)
System requirements specification (srs)System requirements specification (srs)
System requirements specification (srs)
 
Requirement specification (SRS)
Requirement specification (SRS)Requirement specification (SRS)
Requirement specification (SRS)
 
Query processing and optimization (updated)
Query processing and optimization (updated)Query processing and optimization (updated)
Query processing and optimization (updated)
 
Analysis modeling
Analysis modelingAnalysis modeling
Analysis modeling
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
 
Software process
Software processSoftware process
Software process
 
Design and Implementation in Software Engineering
Design and Implementation in Software EngineeringDesign and Implementation in Software Engineering
Design and Implementation in Software Engineering
 
REQUIREMENT ENGINEERING
REQUIREMENT ENGINEERINGREQUIREMENT ENGINEERING
REQUIREMENT ENGINEERING
 
Domain model
Domain modelDomain model
Domain model
 

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

Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptxGenta Sahuri
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and DiagrammingOrnella Dunn
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1JIGAR MAKHIJA
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case DiagramsMarwa Ali Eissa
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEWrizki adam kurniawan
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.pptRAJESH S
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2Sisir Ghosh
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfAZKANAAZ1
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptxazida3
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UMLSyed Hassan Ali
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case DiagramAshesh R
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with umlsabin kafle
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopktuonlinenotes
 

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

Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
Use case diagram
Use case diagramUse case diagram
Use case diagram
 
Uml diagrams usecase
Uml diagrams usecaseUml diagrams usecase
Uml diagrams usecase
 
Use Case Analysis and Diagramming
 Use Case Analysis and Diagramming Use Case Analysis and Diagramming
Use Case Analysis and Diagramming
 
Use case modeling
Use case modelingUse case modeling
Use case modeling
 
Use case modeling & analysis v 1
Use case modeling & analysis v 1Use case modeling & analysis v 1
Use case modeling & analysis v 1
 
Lesson02_Use Case Diagrams
Lesson02_Use Case DiagramsLesson02_Use Case Diagrams
Lesson02_Use Case Diagrams
 
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW[RPL2] Pertemuan 3 - UML dan USECASE VIEW
[RPL2] Pertemuan 3 - UML dan USECASE VIEW
 
CASE Tools lab.ppt
CASE Tools lab.pptCASE Tools lab.ppt
CASE Tools lab.ppt
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
05 use case
05 use case05 use case
05 use case
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Design UML diagrams
Design UML diagramsDesign UML diagrams
Design UML diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use Case Modelling.pptx
Use Case Modelling.pptxUse Case Modelling.pptx
Use Case Modelling.pptx
 
Use Case Modeling In UML
Use Case Modeling In UMLUse Case Modeling In UML
Use Case Modeling In UML
 
Use Case Diagram
Use Case DiagramUse Case Diagram
Use Case Diagram
 
analysis and design with uml
analysis and design with umlanalysis and design with uml
analysis and design with uml
 
Lecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oopLecture 3 cst205 cst281-oop
Lecture 3 cst205 cst281-oop
 

Kürzlich hochgeladen

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 

Kürzlich hochgeladen (20)

High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur EscortsRussian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
Russian Call Girls in Nagpur Grishma Call 7001035870 Meet With Nagpur Escorts
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 

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.