Book a Demo

Author Topic: Foreign Object Highlighting - differentiation  (Read 8336 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Foreign Object Highlighting - differentiation
« on: May 23, 2006, 02:19:58 am »
If the foreign object name appears more than once (including duplicating the actual object name) there needs to be additional qualifiers (such as the package name) to differentiate them.

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #1 on: May 23, 2006, 04:39:19 am »
I take it you are referring here to instances. [Yes, you did say "object" but I'm being sure.]

Then we are talking about something analogous to "Highlight Foreign Objects" (which seems to generally mean "classifiers" rather than "instances") for instances. This would allow the reader to understand that the object "X100:Washer" is an instance of Washer from the HardwareFasteners package rather than from HomeAppliances or HumanResourceJobCategories, for example.

Sounds reasonable to me.
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #2 on: May 23, 2006, 06:15:34 am »
Quote
I take it you are referring here to instances. [Yes, you did say "object" but I'm being sure.]
Well, I actually meant Element - but EA's unique user interface strikes again...   ::)

I meant whatever, setting the Foreign Object Highlighting checkbox affects.  This seems to be Classifiers, but I'm not certain...

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #3 on: May 23, 2006, 06:55:22 am »
Well, it certainly affects classifiers. As to whether this was the intent, or the sole intent, it's difficult to say. And that very uncertainty is an issue - CCC!

I just looked again. Foreign objects (instances) are indicated by a "from <wherever>" note in italics below the object. Foreign [i[classifiers[/i] are shown by a text indicator in the header. I think each of these are in line with the UML standard, and thus consistent in that sense. Unfortunately the text in the Options dialog is a little vague in this respect.

However, I suspect Sparx has got it pretty close to correct given the UML take on this. I do think that CCC would apply and be beneficial there (UML) as well Paolo.

EDIT:
BTW, I used to use a tool that showed a foreign Class with the text "(from <wherever>)" above the object, much like some of the OMG documents show in metamodel fragments. When I first used EA I really missed this. Perhaps a bit of nostalgia is softening my opinions about how instances are displayed in EA. However, I've come to prefer the way EA shows foreign classifiers.

I wouldn't mind having the choice (in either case) though. Take that with a few grains of salt; I've not checked the spec or guides.
« Last Edit: May 23, 2006, 07:00:54 am by Midnight »
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #4 on: May 24, 2006, 01:11:29 am »
Associated with this topic is the observation that the foreign object highlight only documents the immediate generalizations.

This is appropriate.  However, it would be neat to indicate that there are higher levels on the foreign object by means of an ellipsis (...) after the name.

Thus if the hierarchy is:

Namespace->TreeGraphNode->HierarchicalGraphNode->DirectedGraphNode->GraphNode

Namespace would show:  TreeGraphNode...
(... indicating: But wait, there's more!  ;D )
while
DirectedGraphNode would show GraphNode (only)

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

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #5 on: May 24, 2006, 04:50:04 am »
Or perhaps even (as an option) to show the hierarchy. This could be done one line at a time, fitting with the visual paradigm that is there now.

Something roughly along the lines of the hierarchy when you show inheritance details for attributes, etc. on classes.

Then we can start talking about making these into hyperlinks to the ancestor elements. Wow!
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #6 on: May 24, 2006, 05:28:48 am »
Quote
Or perhaps even (as an option) to show the hierarchy. This could be done one line at a time, fitting with the visual paradigm that is there now.
I thought of that, but many of my hierarchies are extremely deep and wide (as I work a lot in the Computationally Independent and Domain IndependentTM models).  However, I thought a context menu item allowing you to open the Hierarchy Window could do the trick...
Quote
[size=13][SNIP][/size]Then we can start talking about making these into hyperlinks to the ancestor elements. Wow!
You read my mind!  I'd also like to be able to select the ancestor item and ALT-G to select in browser.

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

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #7 on: May 24, 2006, 01:49:56 pm »
registertm  ;D (register as the enhancement)
registertm everything to SparX

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #8 on: May 24, 2006, 02:10:31 pm »
Quote
registerTM  ;D (register as the enhancement)

Actually, I have a new pattern for requests and suggestions to Sparx.  I post a new thread in the forum and then email Sparx with a reference to the thread.  That way, they can see any on-going discussion.

As an Architect, I know I don't always come up with the best ideas1.  Getting input from the community (especially an enthusiastic one like this one), is a great way to refine/refactor/improve ideas into great ones!

I commend this approach to you all...

Paolo
1I DO try to think them through... :D
« Last Edit: May 24, 2006, 02:11:00 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

SF_lt

  • EA User
  • **
  • Posts: 216
  • Karma: +1/-0
  • The Truth Is Out There
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #9 on: May 24, 2006, 02:54:47 pm »
some time ago I have come to the same idea ;) - using BUG word for bug report thread topic & so on
« Last Edit: May 24, 2006, 02:55:40 pm by SF_lt »
registertm everything to SparX

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #10 on: May 24, 2006, 08:32:08 pm »
Quote
However, I thought a context menu item allowing you to open the Hierarchy Window could do the trick...
You read my mind!  I'd also like to be able to select the ancestor item and ALT-G to select in browser.
It would also be really handy to be able to have a context menu item to add the parent to the diagram!

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

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #11 on: May 24, 2006, 08:40:55 pm »
Context  - Add|Insert Related Element using 1 level link type generalization?
b
"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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #12 on: May 24, 2006, 09:22:07 pm »
Quote
Context  - Add|Insert Related Element using 1 level link type generalization?
b
No, that picks up ANY generalization.  I just want that specific one added.

Remember, this is in the context of the UI being altered so that we can actually select a particular parent.

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

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #13 on: May 24, 2006, 11:46:41 pm »
Hmmmm... self imposed rule of single inheritance chains....

Am I still missing the point or

1) double clicking on the parent item in the hierarchy pops up the info on the selected parent.
2) bit messy but - select desired parent in heirarchy window (which I have autodocked on the LHS)right click on it and use locate related object, which pre-selects the element in the browser (which I have docked on the RHS) and cna then be dragged into the model.

bruce
"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.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Foreign Object Highlighting - differentiation
« Reply #14 on: May 25, 2006, 12:40:09 am »
Quote
Hmmmm... self imposed rule of single inheritance chains....

Am I still missing the point or
No and yes...
What you suggest will work, in principle.  In practice, with my complex latticed hierarchies, updating the Hierarchy window can take a considerable time (even on my 3G Dell).  So I'm just trying to avoid using the Hierarchy window.

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