Topic
5 replies Latest Post - ‏2004-08-20T07:06:22Z by SystemAdmin
SystemAdmin
SystemAdmin
3659 Posts
ACCEPTED ANSWER

Pinned topic Reverse Engineer Sequence Diagram

‏2003-01-13T23:44:26Z |
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
  • SystemAdmin
    SystemAdmin
    3659 Posts
    ACCEPTED ANSWER

    re: Reverse Engineer Sequence Diagram

    ‏2003-01-14T01:41:36Z  in response to SystemAdmin
    Hello 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.

    Thank you,

    Shaquille Asghari
    Senior Support Engineer
    Rational Software Corporation

    Support: 1-800-433-5444
    Sales/Licensing: 1-800-728-1212
    Solution Knowledge Base: <http://eservice.rational.com/solutions>
    SCP Certified: <http://www.rational.com/support/scp.jsp>
    • SystemAdmin
      SystemAdmin
      3659 Posts
      ACCEPTED ANSWER

      Well, this is kind of misleading

      ‏2003-01-16T00:34:02Z  in response to SystemAdmin
      It 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.
      • SystemAdmin
        SystemAdmin
        3659 Posts
        ACCEPTED ANSWER

        re: Well, this is kind of misleading

        ‏2003-01-21T19:58:56Z  in response to SystemAdmin
        I'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.
  • SystemAdmin
    SystemAdmin
    3659 Posts
    ACCEPTED ANSWER

    re: Reverse Engineer Sequence Diagram

    ‏2003-02-11T04:11:26Z  in response to SystemAdmin
    Its 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.
    • SystemAdmin
      SystemAdmin
      3659 Posts
      ACCEPTED ANSWER

      Re: re: Reverse Engineer Sequence Diagram

      ‏2004-08-20T07:06:22Z  in response to SystemAdmin
      Hi,

      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)
      Thanks & Regards,

      Atur