Author Topic: A Need for Class Operation Diagrams  (Read 4083 times)

kelly_sumrall

  • EA User
  • **
  • Posts: 73
  • Karma: +0/-0
    • View Profile
A Need for Class Operation Diagrams
« on: June 22, 2005, 06:55:19 am »
I would like to associate a diagram with a class operation. I am currently using build 766. If there is a way to associate a diagram with a class operation and have all elements be contained by the class operation, I havn't found it. Here is an example of a class with only one operation added.

I was wanting to associate an activity diagram with the operation DisplayMetricGraphs, but was unable to. I can associate a diagram with the class though. But this seems to leave the project looking like my garage. All attributes, operations, diagrams, and diagram entities are at the same level, and intermixed based on sort order. This is more of what I was expecting...

Here, the diagram and its entities are contained in the operation (ignore the sort order, I wasn't paying attention when slicing/dicing the original image). If I don't want to see them, I just collapse the operation node.

I know this has been suggested in the past, atleast a year ago. If this is possible, please tell me how. Also, what are some other organizational techniques you guys use?
Kelly Sumrall

Even though curiosity killed the cat, it still had eight lives left.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: A Need for Class Operation Diagrams
« Reply #1 on: June 22, 2005, 07:04:25 am »
Kelly,

FWIW, the reason you can't do this is because attributes and operations aren't objects (elements) in EA speak.  Only objects (stored in t_Object) can have a Child Diagram. :(  Right-Click in the browser against different types of things and you'll see what can and can't have a Child Diagram.

HTH,

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

kelly_sumrall

  • EA User
  • **
  • Posts: 73
  • Karma: +0/-0
    • View Profile
Re: A Need for Class Operation Diagrams
« Reply #2 on: June 22, 2005, 07:23:46 am »
OK. What is a workable technique to organize all the class operation activity (and others) diagrams in the project? I am looking for an organization strategy that fits within the limits of the application.
« Last Edit: June 22, 2005, 07:25:30 am by kelly_sumrall »
Kelly Sumrall

Even though curiosity killed the cat, it still had eight lives left.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: A Need for Class Operation Diagrams
« Reply #3 on: June 22, 2005, 08:02:17 am »
Quote
OK. What is a workable technique to organize all the class operation activity (and others) diagrams in the project? I am looking for an organization strategy that fits within the limits of the application.
Kelly,
I can't answer that, since I don't know what requirements you may have with repect to organisation... :)

However, I can provide the following observations which may help your decision.  
Once the diagram has been linked, it can be moved, and the linkage will remain. 8)  So you can create a suitable package elsewhere and move the diagram and its contents there.  
The contents of the diagram don't need to be in the same hierarchy as the diagram.  You could thus leave the diagram under the classifier, but move the contents to another package. 8)

HTH,

Paolo
« Last Edit: June 22, 2005, 08:02:31 am by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!