Author Topic: Linking note to an element feature  (Read 3629 times)

harrym

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Linking note to an element feature
« on: May 04, 2005, 01:28:59 am »
On a diagram, EA has the ability to link a note to an element feature such as a constraint, tagged value, etc.  I getting this to work with no problems.  However, what I am difficulty doing is having the linked note display what element feature this note is link to.  Currently I can get it to only display the contents of the feature with no lable as was feature this content was pulled from.    I was hoping to to get something like this:
Constraint:<Pre-Condition>
#Contraint Contents#

Have I missed something simple here?

Thanks

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.&lt;Pogo, 1970&gt;
    • View Profile
Re: Linking note to an element feature
« Reply #1 on: May 04, 2005, 03:17:07 am »
No, I don't think so (at least, if you are, so am I!).

For constraints, I use OCL notation to clarify the nature of the constraint. For example:

inv: V > 0 -- this is an invariant
pre: FileExists -- this is a pre-condition

etc.

The latest OCL spec is available at http://www.omg.org/cgi-bin/doc?ptc/2003-10-14

Cheers,
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Linking note to an element feature
« Reply #2 on: May 04, 2005, 05:03:16 am »
I miss this feature too...  Submit an enhancement request...

(It's actually an identification defect - but the Sparxians see it as an enhancment... ;D)

BTW  IF you select Tagged value as the element feature to link to, you DO get some identification:  Tags:

(see my moniker and signature...)

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

harrym

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Linking note to an element feature
« Reply #3 on: May 04, 2005, 12:36:25 pm »
Thanks for the validation.  I have 5 constraints defined for each UseCase.  In a UseCase diagram, I was trying to show each one of them as a linked diagram note.  All I got was 5 note elements with the contents displayed but the reader of the diagram couldn't tell what the contents of these note elements related to.

I also tried the functionality of attaching a constraint (instead of attaching a note and linking it to an element feature) and it work well for diagram purposes, but approach seems to be semantically weak as this association doesn't appear in the details when a produce HTML documentation out of EA.

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.&lt;Pogo, 1970&gt;
    • View Profile
Re: Linking note to an element feature
« Reply #4 on: May 04, 2005, 01:22:26 pm »
I agree...attaching a constraint directly from the context menu should result in the constraint being added to the list of constraints owned by the object, but doesn't. This could be done by popping open the Properties dialog (or a reasonable facsimile therof) automatically with the Constraints tab selected, the constraint (no pun intended) being that only a single constraint can be added in this way...the constraint thus added would then appear in a note element as before.

Cheers,
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


harrym

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Linking note to an element feature
« Reply #5 on: May 04, 2005, 01:37:23 pm »
Thanks  Fred for the comments.

I could imagine this functionality similar to what exists today in EA for requirements.

Harry

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Linking text to an element feature
« Reply #6 on: May 12, 2005, 01:15:03 am »
Since you can link a note to an element feature, I thought I'd try linking a text element to a classifier and seeing if I could make the text reflect the value of the feature. 8)

In the help system, a text element is portrayed as a Note with a different shape (see: Creating Notes and Text).  But even though you can link a text element to a classifier, only Notes have the Link this note to an element feature method.  Seems inconsistent to me. ???

Thoughts before I submit a defect report?

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