Chapter 5 Revision
Chapter 5 Revision
Chapter 5 Revision
Use case description – A textual model that lists and describes the
processing details of for a use case.
Scenarios or use case instances – A unique set of internal activities
within a use case.
Preconditions – conditions that must be true before a use begins
Postconditions – what must be true upon the successful completion of a
use case
System sequence diagram (SSD) – A diagram showing the sequence of
messages between an actor and the automated part of the system during
a use case scenario.
Loop frame – notation on a sequence diagram showing repeating
messages
True / false condition – part of a message between objects that is
evaluated prior to transmission to determine whether the message can be
sent.
Opt frame – notation on a sequence diagram showing optional messages
Alt frame - notation on a sequence diagram showing if-then-else logic.
CRUD technique – An acronym for create, read, update, and delete. A
technique to validate or refine use cases
A fully developed use case description is the most formal method for
documenting a use case. By creating a fully developed use case description, you
increase the probability that you thoroughly understand the business processes
and the ways the system must support them. To create a comprehensive, robust
system that meets user’s needs, you must understand the detailed steps of each
use case.
QUESTION: EXPLAIN THE DIFFERENCE BETWEEN A USE CASE IN A
SCENARIO. GIVE A SPECIFIC EXAMPLE OF A USE CASE WITH A FEW
POSSIBLE SCENARIOS.
Internally, a use case includes a whole sequence of steps to complete a business
process. Frequently, several variations of the business steps exist within a single
use case.
Each flow of activities is a valid sequence for a use case. These different flows of
activities are called scenarios or use case instances and represents a unique
path through the use case.
For example, the use case ‘create customer account’ will have a separate flow of
activities depending on which actor invokes the use case.
Possible scenarios could be ‘create online customer account’, or ‘create in store
customer account’
QUESTION: WHAT LIST THE PARTS OR COMPARTMENTS OF A FULLY
DEVELOPED USE CASE DESCRIPTION?
Use case name
Scenario
Triggering event
Brief description
Actors
Related use cases
Stakeholders
Preconditions
Post conditions
Flow activities
Exception conditions
Synchronization bars can be used either for parallel concurrent paths, or for
beginning and ending of loops
In this example, the shaded ovals show the other use cases that are invoked
while filling the shopping cart.
The activities of Fill shopping cart go in between the other use cases. For
example, after invoking Search for product and then Look at product reviews, the
actor might start Fill shopping cart to select options and quantities and add it to
the cart.
Then the actor might switch to Search and view accessories before continuing Fill
shopping cart to add an accessory. The activity diagram can be used to show a
richer user experience in this way.
Develop system sequence diagrams
QUESTION: WHAT IS THE PURPOSE OF AN SSD?
In object-oriented approach, information flow is achieved by sending messages
to and from actors or back and forth between internal objects.
The SSD is used to describe the flow of information into and out of the
automated system.
It documents the inputs and outputs and the interaction between actors and the
system. It is a type of interaction diagram.
The symbols include:
Stick figure for the actor
Box with object name for system object
Vertical dashed lines for object lifelines
Horizontal arrows for messages
Horizontal dashed arrows for return data
Comment box for comment
Underneath the actor and ‘: system” are vertical dashed lines called lifelines. It
is the extension of that object during the use case.
There are 2 ways to show a return value on the sequence diagram:
On the same line as the message, (;=) is used to show data returned from
the destination to the source object in response to the message.
A dashed line with an arrow indicates a response or an answer, and is
shown in the figure, it immediately follows the initiating message.
There are 2 ways to show repetition on an SSD:
1. The message and its return are located inside a large rectangle called a
loop frame. In a smaller rectangle at the top of the frame is the
descriptive text to control the behaviour of the messages within the larger
rectangle.
2. An alternative notation where the square brackets and text inside them
are called true / false condition for the messages. The asterisk (*)
preceding the true /false condition indicates that the message repeats if
the true / false condition evaluates to true.
The important principle for identifying parameters is to base it on the class
diagram
In other words, the appropriate attributes from the classes are listed as
parameters
There are 3 types of frames used on an SSD:
1. Loop frame- notation on an SSD showing repeating messages
2. Opt frame- notation on an SSD showing optional messages
3. Alt frame- notation on an SSD showing if-then-else logic
The steps to develop an SSD is as follows:
1. Identify the input messages
2. Describe the message from the external actor to the system by using the
message notation described earlier
3. identify and add any special conditions on the input messages, including
iteration and true / false conditions
4. Identify and add the output messages
Use the CRUD technique to validate use
cases
It is a technique used to validate and refine use cases by looking at each type of
data and verify that use cases have been identified that create, read, update,
and delete the data.
The CRUD technique is most useful when used as a crosscheck along with a user
goal technique. The CRUD technique makes sure all possibilities are identified.
Users will focus on the primary goals and use cases that update, or archive data
will often be overlooked.
The technique can summarize all use cases and data entities or domain classes
to show the connection between use cases and data