with use case diagrams - drexel cciyfcai/cs451/slides/uml-use case diagrams.pdfuse cases • a use...
TRANSCRIPT
![Page 1: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/1.jpg)
1 Spring 2005 Specification and Analysis of Information Systems
Specifying Requirements with Use Case Diagrams
![Page 2: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/2.jpg)
2
Outline
• Introduction • Use Case Diagrams • Writing Use Cases • Guidelines for Effective Use Cases
![Page 3: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/3.jpg)
3
Where are we? Phase Actions Outcome
Initiation Raising a business need Business documents
Requirements Interviewing stakeholders, exploring the system environment
Organized documentation
Specification Analyze the engineering aspect of the system, building system concepts
Formal specification
Design Define architecture, components, data types, algorithms
Formal Specification
Implementation Program, build, unit-testing, integrate, documentation Testable system
Testing & Integration
Integrate all components, verification, validation, installation, guidance
Testing results, Working sys
Maintenance Bug fixes, modifications, adaptation System versions
Introduction | Diagrams | Writing | Guidelines
![Page 4: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/4.jpg)
4
Source of Requirements
• Initial requirements come from the customer, by: – Documents, Meetings, reports
• Advanced requirements come from the analysts, after studying: – Scope and price – Feasibility (technological, organizational etc) – Prototypes
• Final requirements are stabilized in an iterative process.
Introduction | Diagrams | Writing | Guidelines
![Page 5: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/5.jpg)
5
Requirements vs. Design
• Requirements: – What the system
should do – More abstract
• Design:
– How the system should do it
– More detailed
Introduction | Diagrams | Writing | Guidelines
![Page 6: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/6.jpg)
6
Types of Requirements
• Visible Functional Requirements – “The system will deliver cash to the
customer” – “Cash will be delivered after card
was taken out”
• Qualitative Requirements – “The authorization process will take
no more than 1 sec”
• Hidden Requirements – “Database maintenance processes
will occur every night”
Qualitative Requirements
Hidden Functional
Requirements
Functional Visible
Requirements
Introduction | Diagrams | Writing | Guidelines
![Page 7: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/7.jpg)
7
Illustration
Use Cases
• A use case is a contract of an interaction between the system and an actor.
• A full use-case model comprise of: – A diagram, describing relations between use-cases and
actors. – A document describing the use case in details
Register User
Use case in diagram Use Case in script
admin
Introduction | Diagrams | Writing | Guidelines
![Page 8: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/8.jpg)
8
Use Case Diagram Objective
1. Create a semi-formal model of the functional requirements
2. Analyze and define: – Scope – External interfaces – Scenarios and reactions
Introduction | Diagrams | Writing | Guidelines
![Page 9: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/9.jpg)
9
What Makes Good Use-Case Specification?
• Lack of ambiguity – Each requirement must be interpreted in a single manner.
• Completeness – The collection of all use cases is everything that can be done
to/with the system.
• Consistency – Requirements should not conflict with each other. If there
are, tradeoffs must be detected and discussed.
• Avoid design – Requirements should raise a need, not answer it.
Introduction | Diagrams | Writing | Guidelines
![Page 10: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/10.jpg)
10
Use Cases as Means of Communication
The use case should stimulate a discussion about what the system should do, mainly with people who are outside of the development team.
Introduction | Diagrams | Writing | Guidelines
Customers Designers Users
![Page 11: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/11.jpg)
11
Outline
• Introduction • Use Case Diagrams • Writing Use Cases • Guidelines for Effective Use Cases
![Page 12: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/12.jpg)
12
Example
A Simple Example
Handle Message
Cellular Phone
Customer
Bill Management
Handle CallExternal Phone
Company
Actors Use Case System
boundary
Introduction | Diagrams | Writing | Guidelines
Association
![Page 13: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/13.jpg)
13
Finding Actors
• External objects that produce/consume data: – Must serve as sources and destinations for data – Must be external to the system
Humans Machines External systems
Sensors Organizational Units
Introduction | Diagrams | Writing | Guidelines
![Page 14: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/14.jpg)
14
Example
Actors can be generalized
The child actor inherits all use-cases associations
Introduction | Diagrams | Writing | Guidelines
Should be used if (and only if), the specific actor has more responsibility than the generalized one (i.e., associated with more use-cases)
Register ClientSales Person
Institutional Sales Person
Perform Sale
Perform Business Sale
Sales Manager
Cancel Sale
![Page 15: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/15.jpg)
15
Linking Use-Cases
• Linking enables flexibility in requirements specification – Isolating functionality – Enabling functionality sharing – Breaking functionality into manageable chunks
• Three mechanism are used:
– Include – Extend – Inheritance
Introduction | Diagrams | Writing | Guidelines
![Page 16: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/16.jpg)
16
Use-Case Levels
User goals
Perform Sale
Choose Products
Fill-in billing info
Sub-functionality
Introduction | Diagrams | Writing | Guidelines
Base Use Case: Used directly by the user
Alistair Cockburn “Writing Effective Use Cases”
![Page 17: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/17.jpg)
17
The “Include” Construct
• Include is used when: – Decomposing complicated behavior – Centralizing common behavior
• The base use case explicitly incorporates the behavior of another use case at a location specified in the base.
Introduction | Diagrams | Writing | Guidelines
Perform Sale
Fill-in billing info
<<include>>
Example
![Page 18: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/18.jpg)
18
Extend – Graphical Representation
• The base use case can incorporate another use case at certain points, called extension points.
• Note the direction of the arrow – The base use-case does not know which use-case
extends it
Introduction | Diagrams | Writing | Guidelines
Perform Sale After checkout
Gift wrap Products
<<extend>> Product is a gift
Example
![Page 19: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/19.jpg)
19
Example: Amazon
Product Page
Review Writing
Shopping Cart
Introduction | Diagrams | Writing | Guidelines
![Page 20: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/20.jpg)
20
Example – cont’d
Introduction | Diagrams | Writing | Guidelines
Search Product
Navigate Deals
Checkout
Handle Order Status
Login Register
View Product Details
Write Revie
w
Rank Supplier «include»
«include»
«include»
«include»
«extend» user is not a member
«extend»
«extend»
After page generation
Add to cart
«extend»
Customer
![Page 21: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/21.jpg)
21
Generalization between Use-Cases
• The child use case inherits the behavior parent use case: – The interaction (described in the textual description) – Use case links (associations, include, extend, generalization)
• Child use-case can substitute parent Use case • Overriding occurs through the textual description
Introduction | Diagrams | Writing | Guidelines
Example
Handle Sale Call
Customer Representative
Tech Assistant Representative
Handle Call
Handle Technical Assistance Call
1. Transfer call to available representative2. Mark representative as busy3. Start record call4. Stop record call 5. Log call details6. Mark representative as free
![Page 22: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/22.jpg)
22
Generalization Hazards
• Combining generalizations of actors and use-cases can be dangerous
Undergrad Student
Graduate Student
Submit Exam
Submit Thesis
Undergrad Student
Graduate Student
Submit and Get Grade
Submit Thesis
Submit Exam
Bad: Undergrad can submit thesis
Good: Only graduate student can submit thesis
Introduction | Diagrams | Writing | Guidelines
![Page 23: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/23.jpg)
23
Example: Phone Company Operational System
The Cellular Phone
Who are the actors?
External Phone companies
Orange’s objective: Build a system that handles SMS messages, handles calls (for 2 and 3 generation phones), including conference calls and multiple calls from a single phone. The system must support users on the move.
Introduction | Diagrams | Writing | Guidelines
![Page 24: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/24.jpg)
24
Example: Cell Company System
Introduction | Diagrams | Writing | Guidelines
3G Phone
Handle SMS Message
Cellular Phone
while talking
Handle Call
External PhoneCompany
Handle Video Call
Handle Cell Migration
<<include>> <<include>>
Handle Multiple Calls
Handle Conference Call
<<extend>>{incoming call}
<<extend>>{phone initiate call}
Handle Voice Call
![Page 25: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/25.jpg)
25
Outline
• Introduction • Use Case Diagrams • Writing Use Cases • Guidelines for Effective Use Cases
![Page 26: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/26.jpg)
26
Structure of a Use Case Specification
X Name
X.1 Preconditions
X.4 Alternatives flows
Introduction | Diagrams | Writing | Guidelines
Alistair Cockburn “Writing Effective Use Cases”
X.2 Main Flow
X.3 Subflow
![Page 27: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/27.jpg)
27
Preconditions
• What the system needs to be true before running the use-case.
• Examples – User account exists – User has enough money in her account – There is enough disk space
Introduction | Diagrams | Writing | Guidelines
![Page 28: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/28.jpg)
28
Main Scenario
• The success scenario is the main story-line of the use-case
• It is written under the assumption that everything is okay, no errors or problems occur, and it leads directly to the desired outcome of the use-case
• It is composed of a sequence of subflows • Example:
1. Administrator enters course name, code and description 2. System validates course code 3. System adds the course to the db and shows a confirmation message
Interaction step
Validation Step
Internal Change Step
(plus) Interaction Step
Introduction | Diagrams | Writing | Guidelines
![Page 29: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/29.jpg)
29
Guidelines for Effective Writing
• Use simple grammar • Only one side (system or actor)
is doing something in a single step
• Write from an “objective” point of view using active tense – Bad: “Get the amount form the user
and give him the money”
• Any step should lead to some progress – Bad: “User click the enter key”
System Actor Actor asks for money
System asks for amount
Actor gives the amount
System produce the money
Introduction | Diagrams | Writing | Guidelines
![Page 30: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/30.jpg)
30
Subflow – cont’d
• Branches: – If the user has more than 10000$ in her account, the system
presents a list of commercials – Otherwise…
• Repeats:
1. User enters the name of the item he wishes to buy 2. System presents the items 3. User selects items to buy 4. Systems adds the item to the shopping cart 5. User repeats steps 1-4 until indicating he is done
Introduction | Diagrams | Writing | Guidelines
![Page 31: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/31.jpg)
31
Use-Cases – Common Mistakes
• Complex diagram • No actor • Too many user interface details
– “User types ID and password, clicks OK or hits Enter”
• Very low goal details – User provides name – User provides address – User provides telephone number – …
Introduction | Diagrams | Writing | Guidelines
![Page 32: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/32.jpg)
32
Alternative Flows
Success Scenario
Shortcuts Exceptions
Endpoints
• Used to describe exceptional functionality
• Examples: – Errors – Unusual or rare
cases – Failures – Starting points – Endpoints – Shortcuts
Starting points
Introduction | Diagrams | Writing | Guidelines
![Page 33: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/33.jpg)
33
Alternative Flows - Example
• Errors: – “Case did not eject properly” – “Any network error occurred during steps 4-7” – “Any type of error occurred”
• Unusual or rare cases – “Credit card is defined as stolen” – “User selects to add a new word to the dictionary”
• Endpoints – “The system detects no more open issues”
• Shortcuts: – “The user can leave the use-case by clicking on the “esc” key
Introduction | Diagrams | Writing | Guidelines
![Page 34: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/34.jpg)
34
Writing Include
• If a base use-case include another use-case, we will add a reference as a step: 1. System presents homepage 2. User performs login to the system
OR <include: login to the system>
Introduction | Diagrams | Writing | Guidelines
![Page 35: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/35.jpg)
35
Writing Extend
• Scenarios do not include direct references • Instead, they include extension points, such as:
User enters search string System presents search results Extension point: results presentations OR <extension point: results presentations>
• The extension use-case includes conditions in which the extension is being committed – Example: if the user belongs to the “rich clients” group – If more than two commercials were found
Introduction | Diagrams | Writing | Guidelines
![Page 36: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/36.jpg)
36
Outline
• Introduction • Use Case Diagrams • Writing Use Cases • Guidelines for Effective Use Cases
![Page 37: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/37.jpg)
37
How to Model?
save Bullets format
load Save
as
preview
File action
s
Formatting actions
Viewing Actions
Font forma
t
Paragraph format
Bottom-up Process Top-down Process
Starting with throwing all scenarios on the page, and then combining them:
Starting with an overview of the system, and then splitting Use-cases
![Page 38: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/38.jpg)
38
How to Model – cont’d
• Most of the analysis process are actually
Combined
![Page 39: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/39.jpg)
39
Combining Processes
• Number Limit: – The diagram should have between 3 to 10 base use-case. No
more than 15 use cases (base + included + extending).
• Abstraction: – All use-cases should be in similar abstraction levels.
• Size: – Use cases should be described in half a page or more.
• Interaction: – Use-cases which are carried out as part of the same interaction.
UC UC UC
Introduction | Diagrams | Writing | Guidelines
![Page 40: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/40.jpg)
40
Dividing Processes
• Size: – If a use-cases takes more than a page, consider
include/extend
• Weak dependency: – If the dependency between two parts of a use-case is weak,
they should be divided.
UC
Introduction | Diagrams | Writing | Guidelines
![Page 41: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/41.jpg)
41
More Guidelines
• Factor out common usages that are required by multiple use cases – If the usage is required use <<include>> – If the base use case is complete and the usage may be
optional, consider use <<extend>>
• A use case diagram should: – contain only use cases at the same level of abstraction – include only actors who are required
Introduction | Diagrams | Writing | Guidelines
![Page 42: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/42.jpg)
42
When Are we Done?
• When every actor is specified. • When every functional requirement has a use-case
which satisfies it. • A tractability matrix can help us determine it:
Use Cases
Requirements
Introduction | Diagrams | Writing | Guidelines
![Page 43: with Use Case Diagrams - Drexel CCIyfcai/CS451/slides/UML-Use Case Diagrams.pdfUse Cases • A use case is a contract of an interaction between the system and an actor. • A full](https://reader034.vdocuments.net/reader034/viewer/2022042915/5f528d599e50cc752e4bcb0c/html5/thumbnails/43.jpg)
43
Summary
Introduction to the Unified Modeling Language (UML) To Use Case Diagram
Use Case Diagrams Dual presentation of use-cases Include, Extend, Inheritance
Writing Use Cases Preconditions & Post-conditions Main scenario vs. Alternative Flow
Guidelines for Effective Use Cases