Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Dynamic Model Code Associativity
Topic Summary:
Created On: 4-May-2006 07:53
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 4-May-2006 07:53
User is offline View Users Profile Print this message


Jens Steiner

Posts: 9
Joined: 21-Nov-2006

I have a problem with the Dynamic Model Code Associativity in Rhapsody 6.1.
I created a Java project and set the Dynamic Model Code Associativity to "Bidirectional" because I want code changes to apppear in the model. If I use Rhapsody's "Active Code View" to add an additional attribute to a class or maybe change the constructor, all changes are lost the moment I press Ctrl+S or the "Active Code View" window loses focus.

It simply doesn't behave bidirectional. Model changes appear in the code immediately but code changes always are lost.

Maybe there is an option somewhere in the component or configuration settings to correct this behaviour of Rhapsody? The only way I can possibly work is setting DMCA to "None" but I will have inconsistencies between my models and the code then. I also noticed that Rhapsody places code fragments added via the feature dialogue of a function inside

//#[
...
//#]

tags. Code inside those tags is not touched by Rhapsody but this doesn't help with my understanding of bidirectional...

I am looking forward to any suggestion.
Report this to a Moderator Report this to a Moderator
 5-May-2006 09:12
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

Hi

I've just tried this with RiC++ 6.1MR1, build 678510, and DMCA seems to work well; I can add an attribute, modify the parameter list for a constructor, add code to a constructor and it all gets round-tripped into the model. (In the case of an attribute, Rhapsody pulls the attribute in, then writes it back out with setter and getter.)

So, perhaps this issue is Java-specific...

On the suggestions front ? have you tried specific round-tripping with DMCA off, using the Code\Roundtrip menu option? This would help to identify whether the problem is specific to DMCA or a general issue with Java roundtripping.

I appreciate that's of limited help... maybe it's one for [URL=mailto:support@ilogix.com]I-Logix support[/URL]...

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life
Report this to a Moderator Report this to a Moderator
 5-May-2006 11:25
User is offline View Users Profile Print this message


Jens Steiner

Posts: 9
Joined: 21-Nov-2006

It seems to be a problem with Rhapsody for Java. My Rhapsody for C++ behaves just fine.

I tried roundtripping with DMCA set to "none" in the Java version and it doesn't work either. Attributes entered in the dynamic code view are not pulled into the model.

I-Logix support kindly informed me that they can't help because we are in the University program since 2005 and don't pay for our licenses anymore like all the years before *shrug*.
Report this to a Moderator Report this to a Moderator
 8-May-2006 13:03
User is offline View Users Profile Print this message


Beery Holstein

Posts: 105
Joined: 11-Jun-2004

Hello,

In RiJ, Round-Trip is only for bodies of operations and for actions in Statecharts. In other words, DMCA will update changes inside bodies/actions but not e.g. attributes.

Regards,
Beery
Report this to a Moderator Report this to a Moderator
 9-May-2006 06:55
User is offline View Users Profile Print this message


Jens Steiner

Posts: 9
Joined: 21-Nov-2006

Ok, good to know that. Documentation is a bit blurred and often doesn't make a difference between Java and C/C++. So, some parts (e.g. event generation macros) are documented "Rhapsody for C/C++" specific.

Anyway, thank you for answering
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.