Rational Rose Manual

Only available on StudyMode
  • Topic: Unified Modeling Language, Rational Software, Design pattern
  • Pages : 13 (2044 words )
  • Download(s) : 181
  • Published : November 21, 2012
Open Document
Text Preview
Visualize with Rational Software Architect
Create and transform a UML 2.0 model into code
Skill Level: Introductory Eric Long (elong@us.ibm.com) Software Engineer IBM

21 Mar 2006 Rational Software Architect virtually teems with visual tools to handle a number of development tasks. Of most interest to developers are UML modeling, design patterns, and UML-to-code transformations. After completing this tutorial, you will know how to create a UML model, apply a design pattern to that model, and, finally, transform the abstract model into actual code.

Section 1. Before you start
Rational® Software Architect provides developers, architects, and analysts visual tools for a wide variety of software development tasks. This tutorial introduces a few of these powerful visual tools: UML modeling, design patterns, and UML transformations.

About this tutorial
Learn how to create, edit, and analyze UML models using Rational Software Architect. This tutorial demonstrates the following Rational Software Architect capabilities: • UML modeling

Visualize with Rational Software Architect © Copyright IBM Corporation 2006. All rights reserved.

Trademarks Page 1 of 22

developerWorks®

ibm.com/developerWorks

• Design patterns • UML transformations This tutorial is intended for software developers, architects, and analysts interested in learning about Rational Software Architect's visual modeling capabilities. If you want to learn how to transform high-level UML models into actual code without even knowing a particular programming language, this tutorial is for you.

Objectives
After completing this tutorial, you will know how to use Rational Software Architect to create UML projects and models, apply design patterns to those models (new or existing), and transform UML models into source code or into a different type of model.

Prerequisites
This tutorial assumes that you have some knowledge of Java™ programming, and design patterns. Knowledge of UML models is helpful, but not required.

System requirements
To run the examples in this tutorial, install Rational Software Architect. If you don't have a copy of Rational Software Architect, download a free trial version. All of the prerequisites for Rational Software Architect are located in the Resources section of this tutorial.

Section 2. Create a UML modeling project
To get started, you need to do some initial set up. First, create a UML project and model.

Steps
Creating a UML modeling project is very easy:

Visualize with Rational Software Architect © Copyright IBM Corporation 2006. All rights reserved.

Trademarks Page 2 of 22

ibm.com/developerWorks

developerWorks®

1. 2. 3. 4. 5. 6. 7.

Open Rational Software Architect. Open the Modeling perspective by selecting Open Perspective > Modeling from the Window menu. Make sure all of your open projects are closed. Select New > Project... from the File menu. Ensure the Show All Wizards box is checked. Expand the Modeling folder. Select UML Project. Figure 1. The New Project window

8. 9.

Click Next. Name your project DWorksPatternProject. Figure 2. UML Modeling Project window

Visualize with Rational Software Architect © Copyright IBM Corporation 2006. All rights reserved.

Trademarks Page 3 of 22

developerWorks®

ibm.com/developerWorks

10. Click Next. 11. Fill in the Create a UML project wizard as follows: • Select UML Modeling for the File types. • Select Blank Model for the Templates. • Enter PatternModel for the File name. • Leave the remaining defaults. The wizard should look like this: Figure 3. Create UML Model window

Visualize with Rational Software Architect © Copyright IBM Corporation 2006. All rights reserved.

Trademarks Page 4 of 22

ibm.com/developerWorks

developerWorks®

12. Click Finish. 13. The Model Explorer view contains your UML Project, DWorksDesignPattern and your blank UML model, PatternModel.emx. Figure 4. Current Model Explorer view...
tracking img