Escolar Documentos
Profissional Documentos
Cultura Documentos
9/3/01
Contents
Basics
UML
Actors, Use cases
9/3/01
What is it?
Example 1:
The system shall allow users to withdraw cash.
[What?]
Example 2:
A sale items name and other attributes will be
stored in a hash table and updated each time
any attribute changes. [How?]
9/3/01
C- and D-Requirements
9/3/01
9/3/01
Roadmap:
9/3/01
C-requirements:
9/3/01
ID
Weekly
pay
Regular
hours
Employee Record
Overtime
rate
Company records
*
Pay
Overtime
hours
Overtime
pay
Total pay
Worker
Deduct
taxes
Tax rates
9/3/01
Net pay
Check
Issue
paycheck
EBON (e,f)
EBP(e,f)
9/3/01
D-requirements:
1.
2.
3.
4.
10
Functional requirements
The blood pressure monitor will measure the blood
pressure and display it on the in-built screen
(b)
Non-functional requirements
Performance
The blood pressure monitor will complete a
reading within 10 seconds.
(i)
Reliability
The blood pressure monitor must have a failure
probability of less than 0.01 during the first 500
readings.
(i)
9/3/01
11
9/3/01
12
Traceability:
requirements
Functional
Traceability:
requirements
(a)
(b)
Non-Functional
9/3/01
13
9/3/01
14
Categorizing Requirements
Function Category
Meaning
Evident
Hidden
Frill
9/3/01
15
Strategy :
9/3/01
16
6. Error conditions
State what happens in case of an error. How
should the implementation react in case of an
error condition?
9/3/01
17
Requirements Analysis
[10]
Properties of D-requirements:
7. Consistency
Different requirements must be consistent.
Example:
R1.2: The speed of the vehicle will never
exceed 250 mph.
R5.4: When the vehicle is cruising at a speed
greater than 300 mph, a special watchdog
safety mechanism will be automatically
activated.
9/3/01
18
Why a Process?
9/3/01
19
9/3/01
20
9/3/01
Software
Software
Development
Development
Process
Process
Software
Software
System
System
21
22
Architecture centric
9/3/01
23
24
Life cycle
Artifacts
Workflows
Phases
Iterations
9/3/01
25
inception
elaboration
construction
transition
9/3/01
26
Iteration
Elaboration Construction
Iteration
Iteration
Iteration
Iteration
Transition
Iteration
Iteration
Release 1
A cycle with its phases and its iterations
9/3/01
27
9/3/01
28
9/3/01
29
9/3/01
30
Examples
9/3/01
31
Example - contd.
Representation in
analysis of
concepts
Domain concept
Book
______
title
print()
Representation in OO
programming language
9/3/01
32
9/3/01
33
9/3/01
34
9/3/01
35
9/3/01
36
In Summary...
9/3/01
37
Define
Define
Define
Define
use cases
conceptual model
collaboration diagrams
design class diagrams
9/3/01
38
9/3/01
39
OO Analysis concerns
40
Rolls
Die
____
facevalue
2
Plays
DiceGame Includes
9/3/01
41
Defining collaboration
diagram
Objects.
9/3/01
42
Example - collaboration
diagram
:Player
1:r1:=roll()
2:r2:= roll()
9/3/01
d1:D ie
d2:D ie
43
9/3/01
44
D ie
R olls
faceValue
roll()
Plays
includes
D iceG am e
1
initialize()
45
Objectives
9/3/01
46
9/3/01
47
Introduction to UML[1]
UML
UML
UML
UML
is
is
is
is
NOT a methodology
NOT a process
NOT proprietary (Now under the OMG)
strictly Notations
9/3/01
48
Introduction to UML[2]
9/3/01
49
Introduction to UML[3]
Printable
Extensible : users and tool builders should have some
freedom to extend the notation
9/3/01
50
Introduction to UML[4]
Component
View
Logical
View
Use
Case
View
Deployment
View
9/3/01
Concurrenc
y
View
51
Introduction to UML[5]
9/3/01
52
Introduction to UML[6]
9/3/01
53
Introduction to UML[9]
Model elements
Class
Object
State
Use case
Interface
Association
Link
Package
9/3/01
.
CS 406 Fall 2001 Req
54
Introduction to UML[10]
55
Introduction to UML[11]
9/3/01
56
record sales
handle payments
presentation
application logic (problem domain, service
support)
persistence
9/3/01
57
Understanding
requirements
Ref#
Function
Category
R1.1
Evident
R1.2
R1.3
9/3/01
Evident
Hidden
58
Analysis
Objectives
9/3/01
59
9/3/01
60
9/3/01
61
Actors [1]
9/3/01
62
Actors [2]
63
9/3/01
64
Identification of Use
Cases[2]
9/3/01
65
Actors:
Cashier
Customer
Supervisor
Choosing actors:
9/3/01
66
Cashier
Log In
Cash out
Customer
Buy items
Return items
9/3/01
67
Common mistake
Example: printing a
receipt (Why?)
9/3/01
68
Log out
Handle payment
Negotiate contract with a supplier
9/3/01
69
9/3/01
70
Handle returns
Cashier
Process rental
System administrator
Manage
security
Manage users
Payment
Authorization
service
<<actor>>
Tax calculator
<<actor>>
Accounting
system
9/3/01
71
9/3/01
72
9/3/01
73
9/3/01
Buy Items
Customer, Cashier
Primary, Essential
A customer arrives at a checkout with
items to purchase. The cashier records
the purchase items and collects payment.
74
9/3/01
75