Book a Demo

Author Topic: Linked Sequence diagram from a class operation  (Read 4433 times)

dirc

  • EA User
  • **
  • Posts: 46
  • Karma: +0/-0
    • View Profile
Linked Sequence diagram from a class operation
« on: November 23, 2005, 09:43:43 am »
I've had to use Select Component Architect for some time due to company policy.

CA is terrible to use and very buggy, but it did have one very useful feature:

In your class diagram, if you right mouse clicked on an operation, you could choose to generate a sequence diagram for that operation. Once it was saved, the sequence diagram could then be accessed directly from the operation in the class.

What's more, you could then output the details from your sequence diagram straight into your generated code as comments... which is damn useful when generating code for other developers to complete and saves a hell of a lot of developer time since they don't have to keep looking at different diagrams!
dirc

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Linked Sequence diagram from a class operation
« Reply #1 on: November 23, 2005, 04:32:40 pm »
Quote
In your class diagram, if you right mouse clicked on an operation, you could choose to generate a sequence diagram for that operation. Once it was saved, the sequence diagram could then be accessed directly from the operation in the class.


Now, that would be damn useful!

Permit me a slight alteration.  Dont make the sd's accessible from the class diagram (as there is already a context menu for methods) but add a context menu in the Operation detail forms "Operations" listview.  That way, access would not be affected by feature visibility.

Here's something you can do though (in ver 6).

For each method ...
  Right click on the class.
  Click Add | Sequence Diagram
  Draw away...
  Go back to the class diagram
  Select the sequence diagram in the Project browser
  Right click on it
  Click Add Diagram as Reference ...
  Select the class (or classes as appropriate)

You can then right click on the class and use "See Also ..." (ctl-J) to get to the method sd's.

p.s. I also find it helpful to name the sd's as class.method  e.g. Victim.Decompose()
« Last Edit: November 23, 2005, 07:13:35 pm by sargasso »
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.