









































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










































Moonzoo KimMoonzoo
Kim CS Division of EECS Dept.
KAIST
Requirement Analysisq^
y q^
y
^ 8.2 Analysis Modeling Approaches8.2 Analysis Modeling Approaches ^ 8.3 Data Modeling Concepts8.3 Data Modeling Concepts ^ 8.4 Object8.4 Object-
-Oriented AnalysisOriented Analysis ^ 8.5 Scenario8.5 Scenario-
-based modelingbased modeling ^ 8.68.6 Flow
Flow--oriented modeling
oriented modeling ^ 8.7 Class8.7 Class-
-based modelingbased modeling 8 8 C
ti^
b h^
i^ l^
d l
ti^
b h^
i^ l^
d l
^8 .8 Creating a behavioral model8.8 Creating a behavioral model
elaborate on basic requirements established during earlierelaborate on basic requirements established during earlierrequirement engineering tasksrequirement engineering tasksrequirement engineering tasksrequirement engineering tasks^ ^ see Ch 7. “Requirements Engineering”see Ch 7. “Requirements Engineering” build models that depictbuild models that depict build models that depictbuild models that depict^ ^ user scenariosuser scenarios^ ^ functional activitiesfunctional activities^ ^ problem classes and their relationshipsproblem classes and their relationships^ ^ system and class behaviorsystem and class behavior^ ^ the flow of data as it is transformed.the flow of data as it is transformed. the flow of data as it is transformed.the flow of data as it is transformed.
systemdescription
analysismodel
designdesignmodel
CS350I^ t^ t
SE
1.1.^ The model should focus on requirements that areThe model should focus on requirements that are visible
visible within the
within the
problem or business domainproblem or business domainproblem or business domain.problem or business domain. ^ The level of abstraction should beThe level of abstraction should be relatively
relatively high
high..
2.2.^ Each element of the analysis model shouldEach element of the analysis model should^ ^
add to an overall understanding of software requirementsadd to an overall understanding of software requirements add to an overall understanding of software requirementsadd to an overall understanding of software requirements provide insight into theprovide insight into the^ ^ information domaininformation domain^ ^ function of the systemfunction of the systemfunction
of the system function of the system behavior of the systembehavior of the system 3.3.^ Delay consideration of infrastructure and other nonDelay consideration of infrastructure and other non-
-functional modelsfunctional models
until design.until design.
gg 4.4.^ Minimize coupling throughout the system.Minimize coupling throughout the system.5.5.^ Be certain that the analysis model provides value toBe certain that the analysis model provides value to all stakeholders
all stakeholders.
.
66 Keep the model as simple as it can beKeep the model as simple as it can be^ CS350I
t^ t^
SE 6.6.^ Keep the model as simple as it can be.Keep the model as simple as it can be.
Software domain analysis is the identification, analysis, and specificationSoftware domain analysis is the identification, analysis, and specificationofof commoncommon requirements
requirements from a specific application domain, typically for
from a specific application domain, typically for
reusereuse on multiple projects within that application domain... [
on multiple projects within that application domain... [Object
Object-
oriented domain analysis isoriented domain analysis is] the identification, analysis, and specification
] the identification, analysis, and specification yy^
]^
,^ y
,^
p
]^
,^ y
,^
p
of common, reusable capabilities within a specific application domain, inof common, reusable capabilities within a specific application domain, interms of common objects, classes, subassemblies, and frameworks.. .terms of common objects, classes, subassemblies, and frameworks...
Donald FiresmithDonald
Firesmith
^ Define the domain to be investigated.Define the domain to be investigated. ^ Collect a representativeCollect a representative sample
sample of applications in the domain
of applications in the domain
^ Collect a representativeCollect a representative sample
sample of applications in the domain.
of applications in the domain.
^ Analyze each application in the sample.Analyze each application in the sample. ^ Develop an analysis model for the objectsDevelop an analysis model for the objects
CS350I^ t^ t
SE ^ Develop an analysis model for the objects.Develop an analysis model for the objects.
and operations Attributes and operations Encapsulation and instantiationEncapsulation and instantiationInheritanceInheritance InheritanceInheritance CS350I^ t^ t
SE
-oriented thinkingoriented thinking begins with thebegins with the definition
definition of
of^
occurrencesthings
rolesorganizational unitsplaces
gg a class, often defined as:a class, often defined as:–– templatetemplategeneralized descriptiongeneralized description
external entities
placesstructures
description generalized description–– “blueprint” ... describing a“blueprint” ... describing acollection of similar itemscollection of similar itemsA
l^
bli h
A^
l^
bli h
class nameattributes:
operations:
a class of items is Once a class of items isdefined, a specific instancedefined, a specific instanceof the class can be identifiedof the class can be identified^ CS350I^ t^
t^ SE
The object encapsulatesb th d t
d th
l^ i
l
both data and the logicalprocedures required tomanipulate the data
method# 1
method# 2d t
p^
data method# 6
method# 3 method# 4 method# 5
Achieves “information hiding”
CS350I^ t^ t
SE
Furniture (superclass) Chair Table^
Desk^
Bed subclasses of the
CS350I^ t^ t
SE
instances of Chair
““[Use[Use--cases] are simply an aid to defining what exists
cases] are simply an aid to defining what exists[[ ]
p y^
g
]^
p y^
g
outside the system (actors) and what should beoutside the system (actors) and what should beperformed by the system (useperformed by the system (use-
-cases).”cases).” Ivar
Ivar JacobsonJacobson
(1) What should we write about?(1) What should we write about?(2) How much should we write about it?(2) How much should we write about it?(3) How detailed should we make our description?(3) How detailed should we make our description?(3) How detailed should we make our description?(3) How detailed should we make our description?(4) How should we organize the description?(4) How should we organize the description? CS350I^ t^ t
SE
^ a scenario that describes a “thread of usage” for aa scenario that describes a “thread of usage” for asystemsystemyy ^ actorsactors
represent roles people or devices play as therepresent roles people or devices play as the system functionssystem functions usersusers
can play a number of different roles for a givencan play a number of different roles for a given scenarioscenario Developing a use caseDeveloping a use case^ ^ What are the main tasks or functions that are performed by theWhat are the main tasks or functions that are performed by theactor?actor?actor?actor?^ ^ What system information will the actor acquire, produce orWhat system information will the actor acquire, produce orchange?change?^ CS350I^ t^
t^ SE ^ What information does the actor desire from the system?What information does the actor desire from the system?
ent er passwordand user ID
Supplements the useSupplements the use
valid passwor ds/ IDselect major f unct ion
invalid passwor ds/ IDprompt f or reent ry ot her f unct ions
^ Supplements
the use Supplements the use-
case by providing acase by providing adiagrammaticdiagrammatic
input t r ies r em ain no inputt r ies r em ain ot her f unct ionsm ay also beselect edselect surveillance
diagrammaticdiagrammaticrepresentation ofrepresentation ofprocedural flowprocedural flow
t hum bnail views^
select a specif ic cam er aselect camera icon select specif iccamera - t humbnails
(Fig 8.7 of 224 pg)(Fig 8.7 of 224 pg)
view camera out putin labelled window
CS350I^ t^ t
SE
prompt f oranot her viewexit t his f unct ion^
see anot her cam er a
h o m e o w n e r ent er pas s wordand us er ID
c a m e r a^
i n t e r f a c e
^ Allows the modeler toAllows the modeler torepresent the flow ofrepresent the flow of
s elec t m ajor f unc t ion
valid p asswo r d s/ ID
in validp asswo r d s/ IDprom pt f or reent ry
o t h er f u n ct io n s
represent the flow ofrepresent the flow ofactivities described byactivities described bythe usethe use-
-casecase
p o^ pt^ o^ ee^ t y in p u t t r iesr em ainn o in p u tt r ies r em ain
m ay also b eselect eds elec t s urv eillanc e
^ This diagram indicatesThis diagram indicateswhich actor or analysiswhich actor or analysis
t h u m b n ail views
select a sp ecif ic cam er as elec t s pec if ics elec t c am era ic onc am era - t hum bnails
class has responsibilityclass has responsibilityfor the action describedfor the action describedby an activity rectangleby an activity rectangle
generat e v ideoout put
prom pt f oranot her v iew
v iew c am era out putin labelled window
by an activity rectangleby an activity rectangle(Fig 8.8 of 225 pg)(Fig 8.8 of 225 pg)^ CS350I^ t^
t^ SE
exit t h isf u n ct io n
seean o t h ercam er a