It is currently Thu Feb 09, 2012 1:18 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 8 posts ] 
Author Message
 Post subject: What kind of diagrams can be generated from legacy code?
PostPosted: Wed Sep 09, 2009 8:54 am 

Joined: Thu Aug 27, 2009 7:32 am
Posts: 6
Hey there,

I`m working with Rhapsody 7.5 with Cygwin compiler, and I`m trying to get rhapsody, to generate as many diagrams as possible during Reverse Engineering from C files.
I read all the manuals (I think), and the only diagram that can self generate, are FLOW CHARTS (that can be converted into ACTIVITY DIAGRAMS).

Questions:

1) Is there a way to generate from code other diagrams?

2) I have some files, with events and triggers, but Rhapsody, dosen`t recognise them. Are there some key words that I have to implement in code, for Rhapsody to realize what kind of function it`s dealing with?

Thank you for your time!

P.S. I`m a begginer user of Rhapsody, so any nobish problem is possible :) .


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Wed Sep 09, 2009 11:23 am 

Joined: Mon Dec 08, 2008 12:52 pm
Posts: 17
hi,

yes Rhapsody also generates an Object Model diagram where the dependencies between the different files are shown by a usage dependency. And to your second question you can add some keywords to the reverse engineering so that Rhapsody recongnizes it in the code, e.g. if you have a macro for something.

Regards
Jan


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Wed Sep 09, 2009 12:02 pm 

Joined: Thu Aug 27, 2009 7:32 am
Posts: 6
JaMey wrote:
hi,

yes Rhapsody also generates an Object Model diagram where the dependencies between the different files are shown by a usage dependency. And to your second question you can add some keywords to the reverse engineering so that Rhapsody recognizes it in the code, e.g. if you have a macro for something.

Regards
Jan


Thank you for the reply,

I knew about the Object Model Diagram, but other diagrams like..activity, sequance or use case diagrams or state charts or something that can help me understand the code better?

Regarding the second answer, are you talking about adding "preprocessing symbols" or "Adding Types"? either way, could you give me an example (preferably with a C file), what to add, and where, so Rhapsody would know that a function is actually a triggered operation or reception.

Thanks a lot again.


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Wed Sep 09, 2009 10:52 pm 

Joined: Sun Sep 02, 2007 1:44 am
Posts: 34
Object Model Diagrams - Files as Class, Folders as Packages , includes as Dependencies Yes
FlowChart (kind of Activity Diagram) - Yes
Sequence Diagram - Yes through animation
StateCharts - No
UseCase Diagrams - DreamOn ;-)


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Thu Sep 10, 2009 10:10 am 

Joined: Thu Aug 27, 2009 7:32 am
Posts: 6
Bob Senegal wrote:
Object Model Diagrams - Files as Class, Folders as Packages , includes as Dependencies Yes
FlowChart (kind of Activity Diagram) - Yes
Sequence Diagram - Yes through animation
StateCharts - No
UseCase Diagrams - DreamOn ;-)


Well...a man can dream :D

How about activity diagrams?

And regarding my second question, i tried to add the functions manually, in the .sbs files, in the Event section, and it worked...but isn`t there another way ? something more elegant?


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Mon Sep 14, 2009 7:35 am 

Joined: Thu Aug 27, 2009 7:32 am
Posts: 6
Hey there,

So I found an add-on that made my life easier regarding changing functions to events and etc.

My new question is:

What do you know about POPULATE DIAGRAM option?

The manual isn`t very complet, at first it says, that only Use Case, Object and Structure Diagrams can be automaticaly populated. But I also found out that Requirements Diagrams can be POPULATED aswell.
So...If you have used the option, what diagrams can be populated, in witch cases can you populate and how can we activate the option ?, because I saw that it only appears in some particular cases.

Thank you for you time and attention.


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Thu Sep 17, 2009 12:58 pm 

Joined: Wed Aug 05, 2009 2:46 pm
Posts: 5
Hi,

State machines and activity diagrams are not supported.
And it might be very complex to implement this.

To get a flow chart populated for a function you need to:
1. Reverse engineer a file where the function is implemented.
2. in the context menu of the operation you'll find the populate flowchart item.

But you are not able to generate the flowchart, it is only like a picture.

Kind Regards
Christian


Offline
 Profile  
 
 Post subject: Re: What kind of diagrams can be generated from legacy code?
PostPosted: Thu Sep 17, 2009 1:54 pm 

Joined: Thu Aug 27, 2009 7:32 am
Posts: 6
Christian Loibl wrote:
Hi,

State machines and activity diagrams are not supported.
And it might be very complex to implement this.

To get a flow chart populated for a function you need to:
1. Reverse engineer a file where the function is implemented.
2. in the context menu of the operation you'll find the populate flowchart item.

But you are not able to generate the flowchart, it is only like a picture.

Kind Regards
Christian


Hey there,

I`m still struggling for some time now, I`ve discovered that i can import State Charts trough XMI files (just need the program that can generate state charts from code and can export XMI :D ). So if you know such software, I would deeply appreciate a hint :) .

I was able to generate flow charts with reverse engineering. I am using Rhapsody 7.5, and in the feature list, it specifies it can generate them, although there was an error, and it didn`t show up in the reverse engineering menu, I managed to select the option from Active the Configuration File, and it generates flow charts very well, and Roundtripping and Code Generation performs good to.
Regarding Activity Diagrams, I saw that you can Change a Flow Chart to an Activity Diagrams, but I didn`t see no difference in the Diagrams (I never used Activity Diagrams, so I couldn`t say it looks like it should).

Thank you for your help and support! Can`t wait for further input from you guys.
Have a great day


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred