Book a Demo

Author Topic: Association End - Target Scope - where is it from?  (Read 14477 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Association End - Target Scope - where is it from?
« on: May 22, 2014, 05:39:30 pm »
I'm about to "Hijack" the Association End Target Scope property for my own (nefarious  ;)) purposes.

The drop-down has two values: instance and classifier.

I can't find where it (the concept) comes from - Google doesn't help. Anyone know how this property came about in the Sparx connector design?  Can anyone point me at a formal definition?

TIA,
Paolo
« Last Edit: May 22, 2014, 05:48:24 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Association End - Target Scope - where is it f
« Reply #1 on: May 22, 2014, 07:13:36 pm »
Paolo,

In UML superstructure v 1.5 (I know, very old) There a attribute AssociatonEnd.TargetScope of type ScopeKind.
The specs say:
Quote
In the metamodel, ScopeKind defines an enumeration that denotes whether a feature
belongs to individual instances or an entire classifier. Its values are:
- instance:
      The feature pertains to Instances of a Classifier. For example, it is a distinct Attribute in each Instance or an Operation that works on an Instance.
- classifier:
      The feature pertains to an entire Classifier. For example, it is an Attribute shared by the entire Classifier or an Operation that works on the Classifier, such as a creation operation.

I haven't found that enumeration in UML 2.5, so my guess is that it is now obsolete (which is probably the answer you were hoping for ;D)

Geert
« Last Edit: May 22, 2014, 07:14:44 pm by Geert.Bellekens »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Association End - Target Scope - where is it f
« Reply #2 on: May 22, 2014, 10:38:55 pm »
Quote
Paolo,

In UML superstructure v 1.5 (I know, very old) There a attribute AssociatonEnd.TargetScope of type ScopeKind.
The specs say:
Quote
In the metamodel, ScopeKind defines an enumeration that denotes whether a feature
belongs to individual instances or an entire classifier. Its values are:
- instance:
      The feature pertains to Instances of a Classifier. For example, it is a distinct Attribute in each Instance or an Operation that works on an Instance.
- classifier:
      The feature pertains to an entire Classifier. For example, it is an Attribute shared by the entire Classifier or an Operation that works on the Classifier, such as a creation operation.

I haven't found that enumeration in UML 2.5, so my guess is that it is now obsolete (which is probably the answer you were hoping for ;D)

Geert
Hi Geert,
Yes, I found that also - but it relates to the feature (attribute) not the connector (although allowing that in v1.5 a "Named Association End IS an Attribute").  There doesn't seem to be such a property of the Attribute in EA v9+.
Anyway,  I've grabbed it for my purposes...  Although my use is, broadly, in line with the above

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Association End - Target Scope - where is it f
« Reply #3 on: May 23, 2014, 09:06:52 am »
Quote
Yes, I found that also - but it relates to the feature (attribute) not the connector (although allowing that in v1.5 a "Named Association End IS an Attribute").  There doesn't seem to be such a property of the Attribute in EA v9+.
Anyway,  I've grabbed it for my purposes...  Although my use is, broadly, in line with the above

Paolo

In UML 2 they are the same metaclass: "Property".

The enumeration mentioned doesn't exist in UML 2 because they replaced its use with a boolean property isStatic on the Feature metaclass.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Association End - Target Scope - where is it f
« Reply #4 on: May 23, 2014, 09:44:38 am »
Quote
[SNIP]

In UML 2 they are the same metaclass: "Property".

The enumeration mentioned doesn't exist in UML 2 because they replaced its use with a boolean property isStatic on the Feature metaclass.
Yeah, that's what I figured, Simon - but I couldn't be sure.  Thanks for clarifying.  So, there's no problem with the hijack?  It seems it wasn't going anywhere soon...

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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Association End - Target Scope - where is it f
« Reply #5 on: May 23, 2014, 10:24:17 am »
If you're asking if it's likely to stick around, I'm sure it will.

From a modeling perspective. As always, my recommendation would be to model information in the manner that will be the clearest to your intended audience. My concern with your proposed hijack is that it isn't visible on a diagram at all.

I would probably opt to use the stereotype field instead of hijacking another field, in part because it's visible on the diagram. Of course I wouldn't be surprised if you were already using the stereotype.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Association End - Target Scope - where is it f
« Reply #6 on: May 23, 2014, 10:31:24 am »
Quote
If you're asking if it's likely to stick around, I'm sure it will.

From a modeling perspective. As always, my recommendation would be to model information in the manner that will be the clearest to your intended audience. My concern with your proposed hijack is that it isn't visible on a diagram at all.

I would probably opt to use the stereotype field instead of hijacking another field, in part because it's visible on the diagram. Of course I wouldn't be surprised if you were already using the stereotype.
I've REALLY moved away from overloading the Stereotype field.  However, the MAIN reasons I picked Target Scope is that it is available to the Shape Scripts.  THAT's how I surface the settings in Target Scope.

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