Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UML sequence Diagrams

 
Ajay Xavier
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am working for a reverse engineering project.i am having the source code with me how to create sequence diagrams from the existing source code?

i want to do it manually so that i can learn something out of it?

how to start with?

can you refer any goodbooks to start with?
 
bparanj
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would check out Rational tools to do the reverse engineering. Rational Rational Rose by Wendy and Micheal Boggs is a good book. There is a recent version : Mastering Rational XDE.

I am not sure if doing reverse engineering is a good way to learn sequence diagrams.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bparanj,

Welcome to JavaRanch!

A bit of business: you may not have read our naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. "Handles" and joke names aren't enough. You can change your display name here. Thanks!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I often go with pencil & paper for the first pass through difficult code. Actually I'm likely to start with the interaction version of the diagram rather than the sequence version. It just seems easier to add more objects as needed that way. I do really like sequence diagrams and wrote a macro for my text editor to format neat text-only diagrams. Rose is a fantastic tool, but I feel committed to do really refined work when I bother to fire it up, so paper comes first.

PJ Plauger wrote about picking up a diagram by one bubble and shaking it. If you pick the right node it might shake into a tree or circle or a hub and spoke or who knows what. It's useful to try different shapes for an interaction diagram and see if one reveals a hub of dependencies or function driver.
 
Scott Ambler
author
Ranch Hand
Posts: 608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've written an overview of sequence diagramming at UML Sequence Diagrams and at Sequence Diagram Guidelines which you may find useful.

- Scott
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic