NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
5 replies Latest Post - 2004-08-20T07:06:22Z by SystemAdmin
Pinned topic Reverse Engineer Sequence Diagram
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Is it possible to reverse engineer Sequence Diagrams from existing JAVA source code? I have reverse engineered Class Diagrams, but I would like to reverse engineer Sequence Diagrams as well.
Updated on 2004-08-20T07:06:22Z at 2004-08-20T07:06:22Z by SystemAdmin
re: Reverse Engineer Sequence Diagram2003-01-14T01:41:36Z in response to SystemAdminHello Mike,
Interaction Diagrams (Sequence and Collaboration diagrams) Round Trip engineering is not supported in Rose.
These diagrams show dynamic, i.e. runtime behavior and not static design behavior, therefore you cannot get sequence diagram information from code. Dynamic behavior cannot be derived from source files (for example, *.java or *.h files). You must run code and capture this information at runtime. A performance analyzer or tracer such as a debugger can capture information pertinent to interaction diagrams.
The above information and more details are available in a Solution/TechNote located at: http://solutions.rational.com/solutions/display.jsp?solutionId=122708844
Hope this addresses your question.
Senior Support Engineer
Rational Software Corporation
Solution Knowledge Base: <http://eservice.rational.com/solutions>
SCP Certified: <http://www.rational.com/support/scp.jsp>
Well, this is kind of misleading2003-01-16T00:34:02Z in response to SystemAdminIt is possible to recreate activity diagrams from java code, but not with Rose. Manually, for example.
The point is that java code has all necessary information in it for the activity diagram. That is - dynamic model.
Besides, sequence diagram is not an instance if specific execution and that is why comparing it with information captured by performance analyzer is not correct.
On the other side, it does not make much sense to go to that level of details in the activity diagrams.
re: Well, this is kind of misleading2003-01-21T19:58:56Z in response to SystemAdminI'm a little confused because you are talking about two entirely different diagrams. An activity diagram is not an interaction diagram (which includes collaboration diagrams and sequence diagrams) and is the original diagram discussed in this topic. Activity diagrams are more of a flowchart or state machine view on your code.
Sequence diagrams do show runtime information including concurrency of method calls (simple or single thread, synchronous, asynchronous, etc). Also, since sequence diagrams utilize objects and not classes, they are dealing with specific instantiations of classes and, as such, represent a specific "path" of execution through your code. That is also why you can actually change a parameter in a method call to a specific argument value.
re: Reverse Engineer Sequence Diagram2003-02-11T04:11:26Z in response to SystemAdminIts possible by using togethersoft's controlcenter tool. We use it in our facilities since its much faster to analyze existing code's interactivity even tho we use Rose/RUP to define the architecture.
Re: re: Reverse Engineer Sequence Diagram2004-08-20T07:06:22Z in response to SystemAdminHi,
I am using Rational Rose : 2003 and Togethersoft ControlCenter 6.2 (Eval). Togethersoft generates sequence diagram from java code and also exports to XMI.
But it gives parsing error while importing into Rose using XMI Plugin.(RoseXMLTools1.3.6.01)
Is there any documentation available for this plugin?
Or what XMI parameters to select for exporting :~
- Encoding - ?? (e.g. Cp1252)
- XMI Type - ?? (e.g. XMI 1.0 for UML 1.3 Unisys Extension)