SlideShare a Scribd company logo
1 of 31
Analysis Model
A Bridge
2
system
description
analysis
model
design
model
Writing the Software Specification
Everyone knew exactly what
had to be done until someone
wrote it down!
Elements of the Analysis Model
Elements of the Analysis Model
Contd.
4
Use case text
Use case diagrams
Activity diagrams
Swim lane diagrams
Scenario-based
modeling
Class diagrams
Analysis packages
CRC models
Collaboration diagrams
Class-based
modeling
Data structure diagrams
Data flow diagrams
Control-flow diagrams
Processing narratives
Flow-oriented
modeling
State diagrams
Sequence diagrams
Behavioral
modeling
Structured AnalysisObject-oriented Analysis
Elements of the Analysis Model
Contd.
• Flow-oriented modeling – provides an indication of how data objects are
transformed by a set of processing functions
• Scenario-based modeling – represents the system from the user's point of
view
• Class-based modeling – defines objects, attributes, and relationships
• Behavioral modeling – depicts the states of the classes and the impact of
events on these states
5
Overall Objectives of Analysis
Model
• Three primary objectives
– To describe what the customer requires
– To establish a basis for the creation of a software design
– To define a set of requirements that can be validated once the software is
built
• All elements of an analysis model are directly traceable to parts of the
design model, and some parts overlap.
6
Scenario-based Modeling
Textual Use Cases
• Use cases are a type of textual requirements
specification that capture how a user will interact with a
solution to achieve a specific goal.
• They describe the step by step process a user goes through
to complete that goal using a software system.
• Use cases capture all the possible ways the user and
system can interact that result in the user achieving the
goal.
• They also capture all the things that can go wrong along
the way that prevent the user from achieving the goal.
Use cases elements
Use cases contain the following elements:
Name – A clear verb-noun descriptor that communicates the scope of the use
case.
Goal – A brief paragraph of text describing the scope of the use case.
Actors – A list of the types of users who can engage in the activities
described in the use case. Actor names should not correspond to job
titles.
– Primary Actor
– Supporting Actor/ Secondary Actor
– Off-Stage Actor / Secondary Actor
Precondition/s – Anything the solution can assume to be true when the use
case begins.
Use cases elements contd.
Basic Flow – The set of steps the actors take to
accomplish the goal of the use case. A clear description
of what the system does in response to each user
action.
Alternate Flows – Capture the less common user/system
interactions, such as being on a new computer and
answering a security question.
Exception Flows – The things that can happen that
prevent the user from achieving their goal, such as
providing an incorrect username and password.
Post Condition/s – Anything that must be true when the
use case is complete.
Golden Rule of Use-Case Names
• Each use case should have a name that indicates what value
(or goal) is achieved by the actor's interaction with the
system
• Here are some good questions to help you adhere to this
rule:
– Why would the actor initiate this interaction with the
system?
What goal does the actor have in mind when undertaking
these actions?
What value is achieved and for which actor?
11
Use Case Name Examples
• Excellent - Purchase Concert Ticket
• Very Good - Purchase Concert Tickets
• Good - Purchase Ticket (insufficient detail)
• Fair - Ticket Purchase (passive)
• Poor - Ticket Order (system view, not user)
• Unacceptable - Pay for Ticket (procedure, not
process)
12
Types of Actors
• Primary Actor
– Has goals to be fulfilled by system
• Supporting/Secondary Actor
– Provides service to the system
• Offstage Actor/Secondary
– Interested in the behavior, but no contribution
• In diagrams, Primary actors go on the left and others
on the right.
13
Descriptive Use-Case
UC-ID: 001
Use-case Name: Login
Goal: Librarian has to login the system to perform different transactions
Primary Actor: Librarian
Secondary Actor: University, Student
Pre-condition: System is working properly
Main Success Scenario:
Post condition: Librarian is able to perform different other transactions.
Actor Action System Response
1. User enters user name.
2. User enters password.
3. System validates the username and
password.
15
USE CASE : Process Sale
(FULLY DRESSED VERSION)
• Primary Actor: Cashier
• Stakeholders and Interests:
 Cashier: Wants accurate and fast entry, no payment errors, …
 Salesperson: Wants sales commissions updated. …
• Preconditions: Cashier is identified and authenticated.
Main success scenario (or basic flow):
Actor Action System Response
1.The Customer arrives at a POS checkout
with items to purchase.
2.The cashier records the identifier for
each item. If there is more than one of
the same item, the Cashier can enter the
quantity as well.
3.The system determines the item price
and adds the item information to the
running sales transaction. The description
and the price of the current item are
presented.
4.On completion of item entry, the
Cashier indicates to the POS system that
item entry is complete.
5.The System calculates and presents the
sale total.
6.The Cashier tells the customer the total.
The Customer gives a cash payment
(“cash tendered”) possibly greater than
17
Use case (contd…)
• Extensions (or alternative flows):
• Success Guarantee (Post conditions):
Sale is saved. Tax correctly calculated.…
Actor Action System Response
If invalid identifier entered. Indicate error.
If customer didn’t have
enough cash
cancel sales transaction.
Use Case Diagram
19
Actor
• An actor is an idealized user
of a system.
• Actors can be users,
processes, and other
systems
• Many users can be one
actor, in a common role.
• One user can be different
actors, based on different
roles.
• An actor is labeled with the
name of the role
20
Non-human Actor
• Actors can be users,
processes, and other
systems.
• Show non human actors in
a different manner, usually
as a rectangle
• Non human actors are
usually not primary users,
and thus are usually shown
on the right, not the left.
Inventory
System
21
Use Case
• A use case is a coherent unit of
externally visible functionality
provided by a system and
expressed by a sequence of
messages
• Additional behavior can be
shown with parent-child,
extend and include use cases
• It is labeled with a name that
the user can understand
22
System
• A system is shown as a
rectangle, labeled with the
system name
• Actors are outside the
system
• Use cases are inside the
system
• The rectangle shows the
scope or boundary of the
system
Don’t forget the boundary and the system name, unless you are using Rational Rose!
23
Association Relationship
• An association is the
communication path between an
actor and the use case that it
participates in
• It is shown as a solid line
• It does not have an arrow, and is
normally read from left to right
• Here, the association is between a
Modeler and the Create Model
use case
24
Relationships in Use Cases
• There are several Use
Case relationships:
• Association
• Extend
• Generalization
• Uses
• Include
Most Use Cases have only associations.
Use other relationships sparingly.
25
Extend Relationship
• Extend puts additional
behavior in a use case that
does not know about it.
• It is shown as a dotted line
with an arrow point and
labeled <<extend>>
• In this case, a customer
can request a catalog when
placing an order
26
Use Case Generalization
• Generalization is a
relationship between a
general use case and a
more specific use case that
inherits and extends
features to it
• It is shown as a solid line
with a closed arrow point
• Here, the payment process
is modified for cash and
charge cards
27
Uses Relationship
• When a use case uses
another process, the
relationship can be shown
with the uses relationship
• This is shown as a solid line
with a closed arrow point
and the <<uses>> keyword
• Here different system
processes can use the
logon use case voucher
28
Include Relationship
• Include relationships insert
additional behavior into a
base use case
• They are shown as a
dotted line with an open
arrow and the key word
<<include>>
29
Use Case Example: Alarm Clock
This is a contrived
example, to show
many relations.
Your diagrams
should be simpler.
31
Overview
• A use case
diagram
identifies
transactions
between actors
and a system as
individual use
cases

More Related Content

What's hot

What's hot (20)

Use Case TABLE with Actors & Goals
Use Case TABLE with Actors & Goals Use Case TABLE with Actors & Goals
Use Case TABLE with Actors & Goals
 
Non Functional Requirement.
Non Functional Requirement.Non Functional Requirement.
Non Functional Requirement.
 
Domain Modeling
Domain ModelingDomain Modeling
Domain Modeling
 
UML
UMLUML
UML
 
UML Diagrams
UML DiagramsUML Diagrams
UML Diagrams
 
Lecture04- Use Case Diagrams
Lecture04- Use Case DiagramsLecture04- Use Case Diagrams
Lecture04- Use Case Diagrams
 
Object diagram
Object diagramObject diagram
Object diagram
 
Activity diagram
Activity diagramActivity diagram
Activity diagram
 
Uml structural diagrams
Uml structural diagramsUml structural diagrams
Uml structural diagrams
 
Full report on blood bank management system
Full report on  blood bank management systemFull report on  blood bank management system
Full report on blood bank management system
 
Semi join
Semi joinSemi join
Semi join
 
Final project presentation CSE
Final project presentation CSEFinal project presentation CSE
Final project presentation CSE
 
Air Line Management System | DBMS project
Air Line Management System | DBMS projectAir Line Management System | DBMS project
Air Line Management System | DBMS project
 
Uml class-diagram
Uml class-diagramUml class-diagram
Uml class-diagram
 
Online Student Registration System
Online Student Registration SystemOnline Student Registration System
Online Student Registration System
 
School Management initial django.pptx
School Management initial django.pptxSchool Management initial django.pptx
School Management initial django.pptx
 
Real estate management system
Real estate management systemReal estate management system
Real estate management system
 
Peer to peer system
Peer to peer systemPeer to peer system
Peer to peer system
 
UNIVERSITY MANAGEMENT SYSTEM.pptx
UNIVERSITY MANAGEMENT SYSTEM.pptxUNIVERSITY MANAGEMENT SYSTEM.pptx
UNIVERSITY MANAGEMENT SYSTEM.pptx
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 

Similar to Final use case (1)

use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
AqeelAbbas94
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagrams
naveed428
 

Similar to Final use case (1) (20)

Use case Diagram
Use case DiagramUse case Diagram
Use case Diagram
 
conversion-gate02.pptx
conversion-gate02.pptxconversion-gate02.pptx
conversion-gate02.pptx
 
Use Case Diagram.pptx
Use Case Diagram.pptxUse Case Diagram.pptx
Use Case Diagram.pptx
 
Presentation Use Case Diagram and Use Case Specification.pptx
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
 
SE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdfSE_RE-II-CH5 (3).pdf
SE_RE-II-CH5 (3).pdf
 
2.1 usecase diagram
2.1 usecase diagram2.1 usecase diagram
2.1 usecase diagram
 
Use Case Model with components in software.ppt
Use Case Model with components in software.pptUse Case Model with components in software.ppt
Use Case Model with components in software.ppt
 
06 RE_use case diagm1.ppt
06 RE_use case diagm1.ppt06 RE_use case diagm1.ppt
06 RE_use case diagm1.ppt
 
use_case+use_case description.pptx
use_case+use_case description.pptxuse_case+use_case description.pptx
use_case+use_case description.pptx
 
SDLC. BA Role
SDLC. BA RoleSDLC. BA Role
SDLC. BA Role
 
Data Flow Diagram and USe Case Diagram
Data Flow Diagram and USe Case DiagramData Flow Diagram and USe Case Diagram
Data Flow Diagram and USe Case Diagram
 
Lecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagramsLecture no 8 use case modeling and use case diagrams
Lecture no 8 use case modeling and use case diagrams
 
chapter_5_5.ppt
chapter_5_5.pptchapter_5_5.ppt
chapter_5_5.ppt
 
Requirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineeringRequirement analysis and UML modelling in Software engineering
Requirement analysis and UML modelling in Software engineering
 
usecase (1).pptx
usecase (1).pptxusecase (1).pptx
usecase (1).pptx
 
Use cases
Use casesUse cases
Use cases
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
 
Lecture_four-_Requirements_Modeling (1).pptx
Lecture_four-_Requirements_Modeling (1).pptxLecture_four-_Requirements_Modeling (1).pptx
Lecture_four-_Requirements_Modeling (1).pptx
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 
Use case diagrams
Use case diagramsUse case diagrams
Use case diagrams
 

Recently uploaded

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Sheetaleventcompany
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
amitlee9823
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
amitlee9823
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 

Recently uploaded (20)

Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
RSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors DataRSA Conference Exhibitor List 2024 - Exhibitors Data
RSA Conference Exhibitor List 2024 - Exhibitors Data
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
Chandigarh Escorts Service 📞8868886958📞 Just📲 Call Nihal Chandigarh Call Girl...
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
Business Model Canvas (BMC)- A new venture concept
Business Model Canvas (BMC)-  A new venture conceptBusiness Model Canvas (BMC)-  A new venture concept
Business Model Canvas (BMC)- A new venture concept
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
Call Girls Jp Nagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Bang...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
Call Girls Electronic City Just Call 👗 7737669865 👗 Top Class Call Girl Servi...
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 

Final use case (1)

  • 2. A Bridge 2 system description analysis model design model Writing the Software Specification Everyone knew exactly what had to be done until someone wrote it down!
  • 3. Elements of the Analysis Model
  • 4. Elements of the Analysis Model Contd. 4 Use case text Use case diagrams Activity diagrams Swim lane diagrams Scenario-based modeling Class diagrams Analysis packages CRC models Collaboration diagrams Class-based modeling Data structure diagrams Data flow diagrams Control-flow diagrams Processing narratives Flow-oriented modeling State diagrams Sequence diagrams Behavioral modeling Structured AnalysisObject-oriented Analysis
  • 5. Elements of the Analysis Model Contd. • Flow-oriented modeling – provides an indication of how data objects are transformed by a set of processing functions • Scenario-based modeling – represents the system from the user's point of view • Class-based modeling – defines objects, attributes, and relationships • Behavioral modeling – depicts the states of the classes and the impact of events on these states 5
  • 6. Overall Objectives of Analysis Model • Three primary objectives – To describe what the customer requires – To establish a basis for the creation of a software design – To define a set of requirements that can be validated once the software is built • All elements of an analysis model are directly traceable to parts of the design model, and some parts overlap. 6
  • 8. Textual Use Cases • Use cases are a type of textual requirements specification that capture how a user will interact with a solution to achieve a specific goal. • They describe the step by step process a user goes through to complete that goal using a software system. • Use cases capture all the possible ways the user and system can interact that result in the user achieving the goal. • They also capture all the things that can go wrong along the way that prevent the user from achieving the goal.
  • 9. Use cases elements Use cases contain the following elements: Name – A clear verb-noun descriptor that communicates the scope of the use case. Goal – A brief paragraph of text describing the scope of the use case. Actors – A list of the types of users who can engage in the activities described in the use case. Actor names should not correspond to job titles. – Primary Actor – Supporting Actor/ Secondary Actor – Off-Stage Actor / Secondary Actor Precondition/s – Anything the solution can assume to be true when the use case begins.
  • 10. Use cases elements contd. Basic Flow – The set of steps the actors take to accomplish the goal of the use case. A clear description of what the system does in response to each user action. Alternate Flows – Capture the less common user/system interactions, such as being on a new computer and answering a security question. Exception Flows – The things that can happen that prevent the user from achieving their goal, such as providing an incorrect username and password. Post Condition/s – Anything that must be true when the use case is complete.
  • 11. Golden Rule of Use-Case Names • Each use case should have a name that indicates what value (or goal) is achieved by the actor's interaction with the system • Here are some good questions to help you adhere to this rule: – Why would the actor initiate this interaction with the system? What goal does the actor have in mind when undertaking these actions? What value is achieved and for which actor? 11
  • 12. Use Case Name Examples • Excellent - Purchase Concert Ticket • Very Good - Purchase Concert Tickets • Good - Purchase Ticket (insufficient detail) • Fair - Ticket Purchase (passive) • Poor - Ticket Order (system view, not user) • Unacceptable - Pay for Ticket (procedure, not process) 12
  • 13. Types of Actors • Primary Actor – Has goals to be fulfilled by system • Supporting/Secondary Actor – Provides service to the system • Offstage Actor/Secondary – Interested in the behavior, but no contribution • In diagrams, Primary actors go on the left and others on the right. 13
  • 14. Descriptive Use-Case UC-ID: 001 Use-case Name: Login Goal: Librarian has to login the system to perform different transactions Primary Actor: Librarian Secondary Actor: University, Student Pre-condition: System is working properly Main Success Scenario: Post condition: Librarian is able to perform different other transactions. Actor Action System Response 1. User enters user name. 2. User enters password. 3. System validates the username and password.
  • 15. 15 USE CASE : Process Sale (FULLY DRESSED VERSION) • Primary Actor: Cashier • Stakeholders and Interests:  Cashier: Wants accurate and fast entry, no payment errors, …  Salesperson: Wants sales commissions updated. … • Preconditions: Cashier is identified and authenticated.
  • 16. Main success scenario (or basic flow): Actor Action System Response 1.The Customer arrives at a POS checkout with items to purchase. 2.The cashier records the identifier for each item. If there is more than one of the same item, the Cashier can enter the quantity as well. 3.The system determines the item price and adds the item information to the running sales transaction. The description and the price of the current item are presented. 4.On completion of item entry, the Cashier indicates to the POS system that item entry is complete. 5.The System calculates and presents the sale total. 6.The Cashier tells the customer the total. The Customer gives a cash payment (“cash tendered”) possibly greater than
  • 17. 17 Use case (contd…) • Extensions (or alternative flows): • Success Guarantee (Post conditions): Sale is saved. Tax correctly calculated.… Actor Action System Response If invalid identifier entered. Indicate error. If customer didn’t have enough cash cancel sales transaction.
  • 19. 19 Actor • An actor is an idealized user of a system. • Actors can be users, processes, and other systems • Many users can be one actor, in a common role. • One user can be different actors, based on different roles. • An actor is labeled with the name of the role
  • 20. 20 Non-human Actor • Actors can be users, processes, and other systems. • Show non human actors in a different manner, usually as a rectangle • Non human actors are usually not primary users, and thus are usually shown on the right, not the left. Inventory System
  • 21. 21 Use Case • A use case is a coherent unit of externally visible functionality provided by a system and expressed by a sequence of messages • Additional behavior can be shown with parent-child, extend and include use cases • It is labeled with a name that the user can understand
  • 22. 22 System • A system is shown as a rectangle, labeled with the system name • Actors are outside the system • Use cases are inside the system • The rectangle shows the scope or boundary of the system Don’t forget the boundary and the system name, unless you are using Rational Rose!
  • 23. 23 Association Relationship • An association is the communication path between an actor and the use case that it participates in • It is shown as a solid line • It does not have an arrow, and is normally read from left to right • Here, the association is between a Modeler and the Create Model use case
  • 24. 24 Relationships in Use Cases • There are several Use Case relationships: • Association • Extend • Generalization • Uses • Include Most Use Cases have only associations. Use other relationships sparingly.
  • 25. 25 Extend Relationship • Extend puts additional behavior in a use case that does not know about it. • It is shown as a dotted line with an arrow point and labeled <<extend>> • In this case, a customer can request a catalog when placing an order
  • 26. 26 Use Case Generalization • Generalization is a relationship between a general use case and a more specific use case that inherits and extends features to it • It is shown as a solid line with a closed arrow point • Here, the payment process is modified for cash and charge cards
  • 27. 27 Uses Relationship • When a use case uses another process, the relationship can be shown with the uses relationship • This is shown as a solid line with a closed arrow point and the <<uses>> keyword • Here different system processes can use the logon use case voucher
  • 28. 28 Include Relationship • Include relationships insert additional behavior into a base use case • They are shown as a dotted line with an open arrow and the key word <<include>>
  • 29. 29 Use Case Example: Alarm Clock This is a contrived example, to show many relations. Your diagrams should be simpler.
  • 30.
  • 31. 31 Overview • A use case diagram identifies transactions between actors and a system as individual use cases