Tải bản đầy đủ (.ppt) (61 trang)

Requirements Engineering From System Goals to UML Models to Software Specifications docx

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (813.54 KB, 61 trang )

www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene © 2009 John Wiley and Sons 1





www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene © 2009 John Wiley and Sons 2


!"
!
3
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
#$%&

$

!!!!'
!&


(




)!!
$&


*!$
+

*!$+
4
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
!,

*!-.+
/
0!$1!!
/ 0!,!*234*20*2#
/
0&&,&
&5
&
/ ,
&
5(
/ 0!,44
/
0&
/
0%
/
!
/ !!
5

www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
!,-6.

*!+
/
0!$,44
/
'

#$

&

0!!!!!
4!!7
"5"56!$'
6
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!$
!

!

0'89&(
$4




555
/
!$
!$$&!
/
!

!!!$

,
/
:$
:$,!$'$&

/

,&4$'4&;<44555
7
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons

*
*,$!(4
/
!,=444555
/
!,&44!>4555


!
!,!$&!$
/
$&?!
/ !?4
?&-551.

-.!555
/ !!<
!$
!$
/
!


&
&$!
0!$
!

!-6.
8
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!$!

!-7.


0!!!!&!!!
!!

!

!4!
@A'BCD
/ '4!!!
World
Machine
MotorRaising
HandbrakeReleased
DriverWantsToStart


motor.Regime = ‘up’
handBrakeCtrl = ‘off’
errorCode = 013
Machine
Machine
phenomena
phenomena
World
World
phenomena
phenomena
Shared
Shared
phenomena
phenomena

stateDatabase
updated
9
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!$&&&


,!
$

(
(
(,$!!$


(
($
($,!$!!!

System-
as-is
as-is
Concepts, phenomena, rules
about car handbraking
System-
to-be
to-be
Machine

Concepts, phenomena, rules
about automated handbraking
Car
Driver
Brake
10
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
,




&
&555
/


4
&
&4

4

4
&
&

!

$%&
$%&4
$
$4

4

1

(&


/ $
$
$$!(
(
(

&$!
11
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
*!!555

555
/
!
!4$
4

/
!
!!4
/
!
!!$

!!(

4


4

E!!
/
'
'


$!&
$!&4
/
&
&&
Ross'77
Zave'97
12
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 

© 2009 John Wiley and Sons


&5



(($
(($,$&(!
!4!(($

&,
&,!!(($4
4&4(45




,!!

(($!E
!!&
80!!$'!$!!&59


,!!

(($!
E!
!

!$!
!&
80!&$
!F' 
!!&!&


!!&$

!&

59
13
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!,
!
*23
4
*20
4
*2#

Objectives
*23
*23
+
*20
*20

&+
*2#
*2#
$
$
!+
satisfy
assignment
requirements,
constraints,
assumptions
problems,
problems,
opportunities,
opportunities,
system knowledge
system knowledge
System-to-be
System-as-is
14
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!*23

G4=4!(($<
$%&
$%&
/ =!((
/ !$$%&

/ '&!

,
“Serve more passengers”
“Reduce transfer time among terminals”

H
/ '
/
&&-55&
!$%&.
/
!$(4&!,
4'
/ 2$%&
+
+
15
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!*20

G1!(($<
&
&
-&4.
/ !$%&
/
,44555

/
$$!&

,
“Computation of safe train accelerations”
“Display of useful information for passengers inside trains”

H
/ G!!
/ !$
/
$'$$%&
+
+
16
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0!*2#

$!$%&4&4
(($
/
$!$!<$%&
/
!(&$

,

“Safe train acceleration”555$

(($-&.


&
+

“Accurate estimation of train speed/position”555$
'


+

H
/ &&!!

+
+
17
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
!,

*!+
/
0!$1!!
/ 0!,!*234*20*2#
/
0&&,&
0&&,&

&5
&5
&
&
/
,
,
&
&
5
5
(
(
/ 0!,44
/
0&
/
0%
/
!
/ !!
18
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons


H&
H&!
!!!$!&-&.

/
4!4
/ 55“If train doors are closed, they are not open”
“If the train’s acceleration is positive, its speed is non-null”

:&
:&$!
!!$!&-&.
55“Doors shall always remain closed when the train is moving”

G,
/ &$4'4
$&
/
&
19
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons


!555
/
$!&
/
!$!&1!(($,


!


$!!45
Environment Software
TrainMoving
TrainAtPlatform
DoorsClosed


measuredSpeed ≠ 0
doorsState = 'closed'
errorCode = 05
trainPosition-DB
updated
TrainMoving
TrainMoving




DoorsClosed
DoorsClosed
measuredSpeed
measuredSpeed


0
0





doorsState = 'closed'
doorsState = 'closed'
20
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0,

4




,
&

&
!-!.
/ $$!(($$!
!!
/
&$$$
TrainMoving

→ DoorsClosed


,
&


!
!
/ $$!(($
/ !&$&
measuredSpeed ≠ 0

→ doorsState = 'closed’
-E!&.
21
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
0,
44

H
H,
&
$$
!-!(($.
trainAcceleration > 0

→ trainSpeed ≠ 0


,$$!&!
(($
/
&!
/

&-55.
measuredSpeed ≠ 0
iff
iff trainSpeed ≠ 0

H
H,&

/
!&
“measuredSpeed is the speed estimated by the train’s speedometer”
22
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
measuredSpeed
G,
DoorsClosed
,&$
trainSpeed
doorsState
&
,&$
#,
0F
#H& (e.g. actuators)
GH& (e.g. sensors)


⊆ 

×
× &?&$


⊆G
×
×#?&$
I

-4H4.






,
!J(&$@:BCD
23
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
&&

SOFREQ, ASM, DOM |= SysReq
 8
G
G!SOFREQ, the assumptions in ASM
and the domain properties in DOM4
!

!!SysReq9
SofReq: measuredSpeed ≠ 0

→ doorsState = 'closed’
ASM: measuredSpeed ≠ 0
iff
iff trainSpeed ≠ 0
doorsState = 'closed’
iff
iff DoorsClosed
Dom: TrainMoving
iff
iff trainSpeed ≠ 0

SysReq: TrainMoving

→ DoorsClosed
!44&44
&1
24
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons


,
,$what services!
(($!&
/ &4
$

/ 
“The software shall control the acceleration of all trains”

>(,
>(,how such services
should be provided
/
)
),444
?4$4555
/ #!,4!4&
/
0$(
“Acceleration commands shall be issued every 3 seconds to every
train”
25
www.wileyeurope .com/college/van lamsweerde Chap.1: Setting the Scene
 
© 2009 John Wiley and Sons
(
Non-Functional Requirement
Quality of Service Compliance Architectural Constraint Development Constraint
ConfidentialityIntegrity
Availability
DistributionInstallationSafety Security
Usability
PerformanceReliability
Maintainability
Cost
Time Space

Deadline
Variability
Software
interoperability
Convenience
Interface
User
interaction
Device
interaction
Subclass link
Accuracy
Cost

!$'

>($4$&
/
?(,55
(
/
>(&,558!!9


×