• No results found

Rational Rose 2000

N/A
N/A
Protected

Academic year: 2021

Share "Rational Rose 2000"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Rational Rose 2000

Use Case Realization Structure

(2)

Objectives

 Discuss what a Use Case Realization is.

 Define when the use case realizations are created.

 Create Use Case Realization structure in Logical View.

 Create a Use Case Realizations package

 Create Individual use case realization packages

 Create a Traceabilities diagram

(3)

Where Are We?

Interaction diagrams are created and refined during the elaboration phase of this workflow for architecturally significant use cases, along with class

diagrams (not to be confused with analysis classes…)and the flow of events.

Interaction diagrams for remaining use cases are created during the

(4)

Where Are We?

The Use Case Realization structure is created during architectural analysis.

This may be skipped if there is low architectural risk, or the architect is experiences in

(5)

Use Case Realizations

 “Use Case Realizations” is a term used in the Rational Unified Process.

 In particular, they are captured in the Logical View (Design Model) (think: 4+1 architectural view).

 Purpose of a Use Case Realization

 separate the concerns of the specifiers of the system (as

represented by the Use Case Model and the requirements of the system) from the concerns of the designers of the system.

 A Use Case Realization represents the design perspective of a Use Case.

 It is a collaboration of components that realizes (or performs) some use case.

 The realization describes how the behavior of a use

case is performed by the collaboration of elements

(classes, …) within the system.

(6)

Use Case Realizations

 Main purpose is to provide a bridge

between the descriptions of the system

used by external stakeholders (principally users and customers), such as use cases and requirements, and the descriptions of the system used by the internal

stakeholders (principally developers and testers.)

 Use case realizations overcome a problem area that is key in many other development techniques – the discontinuity between

requirements and design.

 They provide for traceability!

(7)

Use Case Realizations

 The separation of the use-case realization

from the use case is essential as it decouples the use case from its implementation, allowing the design to progress without affecting the

baseline requirements captured in the use case.

 Typically, for each use case in the use case model, there will be a use case realization in the design model (in logical view ) with a

realization relationship to the use case.

 Typically there is at least one test case for

every use-case realization (scenario-based)

(8)

Use Case Realizations

 Use Case realizations can be expressed visually using UML constructs such as

sequence and collaboration diagrams OR textually using structured English.

 In fact, when people write their use cases with an implementation focus, discussing the

components of the system and the way that

they work, they are actually creating a textual

use-case realization rather than a use–case

description.

(9)

Compare:

 Strength of Use Cases

 Communicate with end user in

• Language of the end user / stakeholders

• Problem space

 Weaknesses of Use Cases

 Not formal

 Fuzziness in places

(10)

Key Concepts

 Use case realizations and the Logical View

 Represent the concerns of the system’s designers Thus, created during the Logical View. (RUP) (analysis and design)

 Moved from concerns of the end user to that of the system designer.

 The Logical View addresses the functional requirements of the system. The Use Case View is used to communicate with the end user or customer.

 Use case realization packages

 Packages help organize the model and vital for using Rose – distribution of functions, work assignments, distribution, etc.

• We will create a package called Use Case Realizations and in it create packages for each use case realization.

 Traceabilities diagram

 Created in the Use Case Realizations package to help verify that the use cases (from use case view) are represented in the design model

(11)

Use Case Realization - Practicuum

 Objectives

 Create the use realization structure in the Logical View.

 Create the Traceabilities diagram.

(12)

Add Package Called Use Case Realizations

Use Case Realizations package added

Bring up your model in Rose

In Browser, expand Logical View Right Click Logical View

then click New Click Package.

Type Use Case Realizations over NewPackage, then click of Leave model open.

Now, will create use case realization packages for each use case..

Depending on your version of RR,

you may need to expand the Design Model

(13)

Add Three Use Case Realization Packages

Use case realization packages added under Use Case Realizations

In book example:

Add three use case realization packages.

Right Click Use Case Realizations, New, Package,

Type Use Case Realization – Register for Courses

over NewPackage.

Repeat steps 1 – 3

to add Use Case Realization - Login and Use Case Realization – Close Registration.

(14)

Create Traceabilities Diagram

In the browser, the Traceabilities diagram added under Use Case Realizations package

Right click Use Case Realizations; click New;

Click Use Case Diagram; Type ‘Traceabilities’

over New Diagram.

Double-click the Traceabilities diagram.

(15)

Use case Use case realization

Namespace warning

Create Traceabilities Diagram

• Add your Use Cases to the diagram from your Use Case View.

• Drag those Use Cases onto the diagram; Repeat for all use cases in the UC View

• Add the Use Case realizations… From the toolbar, select a Use Case icon and place it on the diagram. Right click to get the Open Specification; type in the name;

and in the stereotype list select Use-case realization. Then, OK.

(Ignore namespace warning) (You will note the appearance of the oval)

(16)

Use case realizations added in browser

Create Traceabilities Diagram

Before continuing with the

Traceability diagram, this is what we have.

(17)

Use case realization moved its package

Create Traceabilities Diagram

Collapse the Use Case View. (Done with this at this time…)

In the browser, drag the use case realizations under their respective packages as shown to the right.

Repeat this for all Use Case Realizations.

(Relocate them in their packages)

(18)

Use case realization identified with its package

Continuing to Create Traceabilities Diagram

The Traceability

Diagram we have is:

(19)

Continuing Traceabilities Diagram

Unidirectional association added

Stereotype added

--- Add the unidirectional

associations via the toolbar Drag the mouse from the Use Case realization icon to the Use Case.

Repeat for all Use Case Realizations.

(20)

Traceability Diagram

 Now that we’ve set up our use case realization structure and created a

Traceabilities diagram, we can create our

interaction diagrams.

 Before doing this, let’s review preferred

practices.

(21)

Preferred Practices

 Create a package called Use Case Realizations in the Logical View.

 (Each Use Case Realization is itself inside of the Use Case Realizations Package in the Design Model in the Logical View.)

 Create a diagram called Traceabilities under Use Case Realizations package.

 Create packages under Use Case Realizations for each use case.

 Name each package the same as its use

case.

(22)

References

Related documents

Business use-case analysis involves a number of components: Business use cases to model business services and processes (such as Process Insurance Claim); business use- case diagrams

We can embed within the chat skin relevant content or promotions that would increase the likelihood of the customer to engage, remain on the web and either drive higher

Given that cullin neddylation is required for the activity of CRLs, whereas CRLs are abnormally activated in human cancers (49, 163), MLN4924, by blocking cullin

after driven’s early case assessment, the client removed another 90 % of data universe prior to full native processing using oNe’s full searching capabilities. without paying

– The <<extends>> relationship exists between use cases when one use case provides an optional sequence of events that is included in the other use case. 42, Use

 Our Design Model will then take the artifacts from Analysis Modeling (analysis classes) and create our Use Case Realizations:..  Static View: Design

 Include Activity Diagrams in a separate package in Rose Browser in the Use Case View under Use Case Models in a folder entitled Activity Diagrams.  See Visual Modeling text

 Include Activity Diagrams in a separate package in Rose Browser in the Use Case View under Use Case Models in a folder entitled Activity Diagrams.  See Visual Modeling text