Module 02 CH 6
Module 02 CH 6
MODULE-02-CH-6
6.1 REQUIREMENTS ANALYSIS
.
REQUIREMENTS MODELING APPROACHES
Use case: Access camera surveillance via the Internet—display camera views (ACS-DCV)
Actor: homeowner
• 1. The homeowner logs onto the SafeHome Products website.
• 2. The homeowner enters his or her user ID.
• 3. The homeowner enters two passwords (each at least eight characters in length).
• 4. The system displays all major function buttons.
• 5. The homeowner selects the “surveillance” from the major function buttons.
• 6. The homeowner selects “pick a camera.”
• 7. The system displays the floor plan of the house.
• 8. The homeowner selects a camera icon from the floor plan.
• 9. The homeowner selects the “view” button.
• 10. The system displays a viewing window that is identified by the camera ID.
• 11. The system displays video output within the viewing window at one frame per second.
CREATING A PRELIMINARY USE CASE
UML MODELS THAT SUPPLEMENT THE USE CASE
• The description of the data object incorporates the data object and all of its
attributes
DATA ATTRIBUTES
• Data attributes define the properties of a data object and take on one
of three different characteristics.
• They can be used to
• (1) name an instance of the data object,
• (2) describe the instance, or
• (3) make reference to another instance in another table.
• In addition, one or more of the attributes must be defined as an
identifier
RELATIONSHIPS
• 4. Common attributes. A set of attributes can be defined for the potential class and these
attributes apply to all instances of the class.
• 5. Common operations. A set of operations can be defined for the potential class and these
operations apply to all instances of the class.
• 6. Essential requirements. External entities that appear in the problem space and produce
or consume information essential to the operation of any solution for the system will almost
always be defined as classes in the requirements model
SPECIFYING ATTRIBUTES
• In many instances, two analysis classes are related to one another in some fashion,
much like two data objects may be related to one another.
• In UML these relationships are called associations. In some cases, an association may
be further defined by indicating multiplicity.
• Ex- Wall object is constructed from one or more WallSegment objects. In addition,
the Wall object may contain 0 or more Window objects and 0 or more Door objects.
• These multiplicity constraints are illustrated in Figure 6.13, where “one or more” is
represented using 1. .*, and “0 or more” by 0 . .*.
• In UML, the asterisk indicates an unlimited upper bound on the range.
• The relationship between these two objects is not a simple association, yet a dependency
association does exist. In a use case written for surveillance (not shown), you learn that a
special password must be provided in order to view specific camera locations. One way
to achieve this is to have Camera request a password and then grant permission to the
DisplayWindow to produce the video display. This can be represented as shown in
Figure 6.14 where <<access>> implies that the use of the camera output is controlled by a
special password.
ANALYSIS PACKAGES