Introduction to rational rose l.jpg
This presentation is the property of its rightful owner.
Sponsored Links
1 / 17

Introduction to Rational Rose PowerPoint PPT Presentation


  • 443 Views
  • Uploaded on
  • Presentation posted in: General

Introduction to Rational Rose. General guidelines and Class diagrams. Rational Rose. A specialized tool for drawing UML diagrams and managing a project’s design. Considered industry standard. Has many specialized modules and editions. Code generation Real-time analysis …

Download Presentation

Introduction to Rational Rose

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Introduction to rational rose l.jpg

Introduction to Rational Rose

General guidelines and Class diagrams


Rational rose l.jpg

Rational Rose

  • A specialized tool for drawing UML diagrams and managing a project’s design.

  • Considered industry standard.

  • Has many specialized modules and editions.

    • Code generation

    • Real-time analysis

  • In this course it will serve mainly as a specialized drawing tool


Rose workspace l.jpg

Rose workspace

Main toolbar

Diagram

Project

tree view

Documentation

Dynamic toolbar


The project tree l.jpg

The project tree

  • Use case view

    • Used for analysis

    • Contains UC diag., actors.

  • Logical view

    • Used for design

    • Contains packages, classes, assoc.

    • Class, sequence and similar diag.

  • Component & Deployment view

    • Used for components design and final deployment diagrams


The project tree usage l.jpg

The project tree - usage

  • Double-click on an item to open its specification.

  • Right-click on an item to add a diagram or sub-items.

  • Most items can be dragged and dropped into a diagram to create an instance.

  • If an item is modified, the change is reflected in the entire project.


The logical view l.jpg

The logical view

  • Contains the project’s packages, classes, interfaces and associations.

  • Classes and interfaces contains their fields and methods.

  • Classes are drag-and-drop-able into diagrams to create instances.

  • If a class is modified in one place, the change is reflected to the whole project.


The class diagram l.jpg

The class diagram


Class diagram toolbar l.jpg

Class diagram toolbar

  • Select items

  • Add text

  • Add note

  • Bind note to item

  • Create new class

  • Create new interface

  • Draw new association

  • Association class

  • Create new package

  • Draw dependency

  • Class inheritance

  • Interface implementation


The class diagram9 l.jpg

The class diagram

  • Standard UML class diagram

  • Distinguishes between class inheritance (plain) and interface implementation (dotted).

  • Classes, interfaces and associations are items.

  • Right-click on an item to:

    • Change appearance options

    • Add attributes and operations

    • Open spec.

    • Anything else…


Class diagram pitfalls 1 l.jpg

Class diagram pitfalls (1)

  • Pitfall 1: when adding attr. and operations, pressing enter start a new item.

    • Click outside the class to exit.

  • Pitfall 2: when using delete to delete an item, it is removed only from the diagram, not from the model.

    • The shortcut to remove an item from the model is ctrl-D, or use right-click.


Class diagram pitfalls 2 l.jpg

Class diagram pitfalls (2)

  • Pitfall 3: Rose uses Pascal notation for attributes and operation types.

    • The type follows the identifier, using ‘:’.

    • The return type of a function follows the function.

  • For example:

    • attr : type (like name : String)

    • func (arg : type) : type (like round(f : float) : int)


Class specifications 1 l.jpg

Class specifications (1)


Class specification 2 l.jpg

Class specification (2)


Class specification explained l.jpg

Class specification explained

  • The “general” and “details” tabs control various parameters of the class itself

  • The “attributes” and “operations” tabs allows inserting, editing or deleting attributes and operations using right-click.

  • The “relations” tab shows the class relations.

  • Ignore other tabs, for now.


Association specification 1 l.jpg

Association specification (1)


Association specification 2 l.jpg

Association specification (2)


Association spec explained l.jpg

Association spec. explained

  • The “general” tab allows naming the assoc. and the participating classes.

  • Side A is the pointed side. Side B is the pointing.

  • “Role general” tab allows controlling the role’s name and visibility.

  • “Role details” controls the important things:

    • Multiplicity

    • Navigable

    • Aggregation / containment (e.g. “by value”)

    • Qualifiers and constraints


  • Login