Solved

Rational Rose for J - aggregation

Posted on 2002-07-25
2
505 Views
Last Modified: 2012-08-13
I have two classes in Rose, which are connected with aggregation relationship.

When I generate Java code, local variable is generated in both classes, like they aggregate each other.

How can I change this behaviour to create one way aggregation? i.e. generate variable only in one class?
0
Comment
Question by:Sektor
2 Comments
 

Accepted Solution

by:
dt19643 earned 50 total points
ID: 7177124
If you don't make the relationship an aggregation associates, just an association, you will see that the member variable to the class will only be defined in one class.  On the side of the arrow, you should be able to right click and assign the role name to define the attribute name as well as public or private access.  Regenerate the code, and it should perform as expected.
0
 

Author Comment

by:Sektor
ID: 7177161
I already found out that the Navigable checkbox is what makes the difference :).
I just had to uncheck it for the role, which I don't need to be generated.

But thanks anyway!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now