3SL: Requirements management and model driven systems engineering from concept to creation.
Cradle®
Login:
Username:
Password:
 
Search:  
Visitor not logged in, You are: Home > Reference > Diagrams > Use Case Diagram
 

Use Case Diagram

Purpose

UCDs are used to describe the interaction between a system and its environment. They form the topmost level(s) of an OO model. An OO model can either be the sole content of the analysis or design modelling domain in a Cradle project, or any number of OO models and can be contained within each domain. An OO model may be the expansion of any process in a DFD.

Example

Here is an example Use Case Diagram.

Example of UCD

Description

An OO model starts by examining the interaction between the OO system under study and its environment. An OO model can either be the sole content of the analysis or design modelling domain in a Cradle project, or an OO model can be embedded within a DFD process. In the first case, the environment of the OO model is the entire system environment, else the environment of an OO model is the environment of the system function (DFD process) of which it is an expansion. The latter approach allows an arbitrary number of OO models to be contained within each of the analysis and design modelling domains in a Cradle project.

The topmost Use Case Diagram (UCD) will have a name and number both set to the name of the DFD process, if any, containing the OO model, otherwise, the name and number should be set to the same value.

A UCD represents the environment as a set of external actors, each of which is defined in a PSpec, whose name and number are taken from the actor name. This means that the definitions of actors will be shared between all UML models that reference them. These actors participate in classes of interaction with the system. Each class of interactions is called a use case.

Each use case has a description in a PSpec. Cradle provides a number of default frames in such specifications, to allow a sensible division of the often large amount of text needed to properly describe the use case. These frames are:

  • PRE CONDITIONS

  • MAIN FLOW

  • ALTERNATE FLOWS

  • EXCEPTION FLOWS

A brief summary of the use case should be entered in the TEXT frame.

Each use case contains one or more possible sequences or flows of events between the system and the environment: a normal sequence, and sequences that relate to alternate cases or error handling situations. A scenario is a particular route through the normal, alternate, or error use case flows, and are normally chosen sensibly to highlight a particular alternate sequence or to describe a particular exceptional case.

Lower-level UCDs can be created below the use cases in the top-level UCD to:

  • Decompose a complex use case into a set of simpler use cases

  • Define the set of scenarios for each use case

  • Share use cases, between use cases in a UML model and between models

Common behaviour may be shown in a shareable use case marked with a double border. The name and number of any PSpec or child UCD of these use cases is taken from their name. Use cases reference this common behaviour by a uses relation to the common behaviour. A use case may be a specialisation of another use case, shown by an extends relation going to the specialisation.

In the top-level UCD, the system is shown as a single rectangular system symbol which has a name and expands into a top-level Package Diagram (PD).

Lower-level UCDs are not allowed to contain a system symbol, to ensure that there is only one entry point into the hierarchy of PDs for the component, process, and deployment views that contains the implementation of the OO model.

Weaknesses

Are not hierarchical. Cradle does, however, allow hierarchies of Use Case Diagrams, in which a use case can be expanded into a lower-level diagram, either:

  • To show more detail

  • To show alternate scenarios within the use case

Characteristics

APPEARS IN MODELS

Essential and Implementation

NUMBERING

Each use case has a name and number which is the UCD number and a decimal number. Lower-level UCDs have a name and number which match the use case for which they are the expansion.

HIERARCHICAL

No

Linkage

UCD Linkage

Symbols

Symbol

Name

Description

Definition

Expansion

UCD Comment

Comment

Makes a note anywhere in the diagram. Are always surrounded by * characters.

None

None

UCD  System

System

Representation of the entire system in the OO model, contains the entire model.

PSpec

PD

UCD External Actor

External actor

A part of the environment that stimulates the system or is stimulated by it.

PSpec

None

UCD Use Case

Use case or its scenario

A class of interactions between one or more actors and the system.

PSpec

UCD
SQD
COD

UCD Share Case

Sharable use cases (uses)

A common set of behaviour that is shared by one or more use cases, in one or more OO models.

PSpec

UCD
SQD
COD

UCD Picture

Picture

Allows you to choose the location of a GIF or JPEG image to be displayed as a diagram symbol or to be embedded in an existing diagram symbol.

None

None

UCD Relation

Actor use case relation

Link between actors and the use cases in which they are involved.

None

None

UCD Includes Relation

Use case includes relation

Shows the use cases referenced by a use case.

None

None

UCD Extends Relation

Use case extends relation

Shows the use case of which particular use cases are a specialisation.

None

None

UCD Generalisation Relation

Generalisation relation

 

None

None

 
[Copyright © 3SL 2008 | Last Updated: Sat Jul 19th, 2008 ]
Registered office: 2 Highfield Road, Barrow in Furness, Cumbria, LA14 5PA, Registered in England No. 2153654