33
Introduction to Rational Rose 98i v 5.2 Copyright 1993-1999 Rational Software, all rights reserved 1 Introduction to Rational Rose 98i Module 2: Introduction

02intro

Embed Size (px)

Citation preview

Page 1: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 1

Introduction to Rational Rose 98i

Module 2: Introduction

Page 2: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 2

Objectives: Introduction

On completion of this module participants will be able to: Discuss the different views supported by

Rational Rose 98i List the diagrams for each view Discuss elements common to each view Configure the Rational Rose 98i interface

Page 3: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 3

What is Rational Rose 98i?

Rational Rose 98i is a tool with the capability to create, view, modify, and manipulate components in a Rose model

Rational Rose 98i supports the Unified, Booch, and OMT notations

Rational Rose 98i is available in three editions: Rational Rose 98i Modeler Rational Rose 98i Professional for C++, Java,

or Visual Basic Rational Rose 98i Enterprise

Page 4: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 4

Rational Rose 98i Features

Feature Modeler Professional Enterprise

UML modeling X X X

Mulit user support X X X

Visual Differencing/Merge X X X

Framework Wizard X

MS Repository Integration X

Source Code Control Integrations X X X

Data Access Add-in X

RoseLink Partner Support X X X

Extensibility Integration X X X

Web Publisher X

Page 5: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 5

Rational Rose 98i Features

Feature Modeler Professional Enterprise

Basic Report Generation X X X

COM Component Reverse

Engineering X

Corba 2.x X

Database Schema Generation X X X

C++ (including Visual C++) C++ edition X

Java Java edition X

Visual Basic VB edition X

Oracle 8 X

Page 6: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 6

What is a Rose Model?

A Rose “model” is a representation of the problem domain and system software Each model contains views, diagrams, and

specifications to visualize and manipulate the elements in the model

There are many views of each underlying element

Every “object” in the design is represented once in the Rose “model”

Rose maintains a consistent semantic representation in the “model”

Page 7: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 7

Use Case View Diagrams

Elements in the use case view may be viewed in one or more diagrams

The use case view contains any or all of the following diagrams Use case diagrams

• Packages, actors, use cases, and relationships Interaction diagrams (sequence diagrams and/or

collaboration diagrams)

• Objects and messages Activity diagrams

• Activities, transitions, forks, joins, decisions, and swimlanes

Page 8: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 8

Use Case Diagram

A use case diagram shows what should be performed by the system and what exists outside the system It shows the existence of actors (outside the

system), use cases (what should be performed by the system), and their relationships

A use-case diagram may depict all or some of the use cases of a system

Page 9: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 9

Interaction Diagrams Interaction diagrams show the existence of

objects and their relationships in the logical design of a system They may represent all or part of the object

structure of a system There are two kinds of interaction diagrams,

each shows a different view of the same interaction A sequence diagram shows object interactions

arranged in time sequence A collaboration diagram is organized around

the objects and their links to each other

Page 10: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 10

Logical View Diagrams

Elements in the logical view may be viewed in one or more diagrams

The logical view contains any or all of the following diagrams Class diagrams

• Packages, classes, and relationships State diagrams

• States, events, and transitions

Page 11: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 11

Class Diagram

A class diagram depicts the static view of the system It shows the existence of packages, classes,

and their relationships in the logical design of a system

A class diagram may represent all or part of the class structure of a system

There are typically many class diagrams in a model

Page 12: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 12

State Diagram

A state diagram is created for classes with significant dynamic behavior

A state diagram shows: The state space of a given class The events that cause a transition The actions that result from a state change

Page 13: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 13

Component View Diagrams

Elements in the component view may be viewed in one or more component diagrams

A component diagram shows the allocation of classes and objects to components in the physical design of a system A component diagram may represent all or part

of the component architecture of a system A component diagram shows packages,

components, and dependencies

Page 14: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 14

Deployment View Diagrams

Elements in the deployment view may be viewed in the deployment diagram The deployment view contains only one

deployment diagram The deployment diagram shows the

allocation of processes to processors in the physical design of a system

A process diagram shows Nodes Connections

Page 15: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 15

The Rose User Interface

Rose consists of: Standard toolbar Diagram toolbar Browser Documentation window Diagram windows Specifications Status bar

Page 16: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 16

Rational Rose

StandardToolbar

Browser

DocumentationWindow

Diagram WindowDiagram Toolbar

StatusBar

Page 17: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 17

Create newmodel

Open existingmodel

Save model or log

PrintDiagramsCopy

PasteCut ContextSensitiveHelp

BrowseClass Diagram

BrowseComponent Diagram

BrowseInteraction Diagram

BrowseParent

BrowsePrevious Diagram

ZoomIn

ZoomOut

ViewDocumen-tation

BrowseDeployment Diagram

Fit inWindow

UndoFit inWindow

Rose Standard Tool Bar

The Rose tool bar is independent of the diagram window that is currently open

Page 18: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 18

Rose Browser

The Rose Browser is used to textually view and navigate between the components in each of the views A + sign next to an icon indicates that the icon

is collapsed A - sign next to an icon indicates that the icon

is fully expanded The Browser can be

Visible or not visible Docked (positioned along a border) or floating

(moved to any location)

Page 19: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 19

The Documentation Window

The Documentation Window is used to create, view, and/or modify the documentation for a selected item on a diagram There is only one Documentation Window,

which is updated as different items on a diagram are selected

The Documentation Window May be visible or hidden May be docked or floating

Page 20: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 20

Specifications

Most modeling elements have a Specification that contains additional information about the modeling element

Page 21: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 21

Documentation Window and Specifications

Information added to the documentation window is automatically added to the documentation field in the appropriate specification

Page 22: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 22

Notes

A note may be attached to any element in a diagram

Page 23: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 23

Linking Diagrams

Diagrams may be linked by using a note

Page 24: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 24

Configuring the User Interface

The Rose User Interface may be customized to: Display or not display the toolbars Add/remove buttons from the toolbars Display or not display the browser Display or not display the documentation

window Make the toolbars, browser, and/or the

documentation window docked or floating

Page 25: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 25

Rose Options

General Fonts, use of backup files, save settings

Diagram Display attributes, operations, visibility, focus of

control, numbering for interaction diagrams, unresolved references adornments, automatic resize, snap to grid

Browser Stereotype naming conventions

Page 26: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 26

Rational Rose 98i Options

Notation Default notation -- UML, Booch, or OMT Default language -- Analysis, C++, Java, or Oracle8

Toolbars Toolbar display and customization DDL, IDL, Java, Oracle8, C++, MSVC, Visual Basic

• Create/modify/delete property sets for code generation

Page 27: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 27

The Framework Wizard

Rational Rose 98i Enterprise has a Framework Wizard, which is started when a new model is created Contains a library of frameworks that can be

used as templates when creating new models Provides you with a mechanism to create

additional frameworks

Page 28: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 28

The Framework Wizard

Page 29: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 29

Pathmaps

The pathmap mechanism of Rational Rose 98i allows you to map an absolute path to a virtual path

Example: $MYPATH = Z:\Registration

• Rose will use the virtual path when the model is saved

This provides the flexibility needed to facilitate team development

Page 30: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 30

Pathmap and &

An absolute path set to & represents the directory containing the Rose .mdl file

Example $CURDIR = & and $MYPATH = X:\registration Model file registration.mdl stored in X:\

registration

• $CURDIR is used instead of X:\registration

Page 31: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 31

Defining Pathmaps

Page 32: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 32

Exercise: Setting up Rational Rose 98i

Set up the Rose user interface for this course If you are using Rose Enterprise, do NOT use a

framework (hit Cancel on the Framework Wizard) Choose the following options (defaults may be

used for all the other options)

• Do not show all attributes• Do not show all operations• Show operation signatures• Do not use focus of control

Page 33: 02intro

Introduction to Rational Rose 98i v 5.2Copyright 1993-1999 Rational Software, all rights reserved 33

Exercise: Setting up Rational Rose 98i

Add the pathmap CURDIR = & and ROSE_COURSE set to your working directory

Save the model as registration.mdl