Book a Demo

Author Topic: Specialization of stereotypes in profile  (Read 5293 times)

Jos Fries

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Specialization of stereotypes in profile
« on: February 12, 2006, 08:54:38 am »
Hi,

When trying to create a profile I noticed the following behaviour. In the profile I created three stereotypes, "Association", "EReference" and "EStructuralFeature". Association is a specialization of EReference which on its turn is a specialization of EStructuralFeature.

When I apply the stereotype "Association" to an element the attributes of "Association" and "EReference" turn up as tagged values of the element; the attributes of "EStructuralFeature" however don't. Is this a feature or a bug?

Regards, Jos

Tuser

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
  • So much stuff to do, so little time...
    • View Profile
Re: Specialization of stereotypes in profile
« Reply #1 on: February 13, 2006, 08:01:37 am »
Sorry not an answer, but a question; How did you manage to make a specialization of a specialization within the profile? I failed miserably to do this...

Jos Fries

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Specialization of stereotypes in profile
« Reply #2 on: February 13, 2006, 10:12:35 am »
Actually I wasn't aware that I was doing something complicated  :)

I simply draw the three stereotype classes and draw the generalization relationships on the profile class diagram using the icons from the profile toolbox. Seemed nothing special to me...

Perhaps this is a version issue? I'm using build 786. I'm under the impression that the profile support is not yet matured. I cannot get the Synch Tagged Values to work and when I try to draw a profile connector to a diagram as described in paragraph 6.6.2.4 of the User Guide, EA actually crashes!

I'm not yet sure I will use this profile support at all...

olafk

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Specialization of stereotypes in profile
« Reply #3 on: February 16, 2006, 03:37:38 am »
Hi Jos,

well, don't be too rash in chucking away the idea of profiles. After all, the UML folks have come up with the idea for good reason... I have used it fairly frequently and can't really say that I've had any trouble...

But first to your original question: really, to re-phrase... the bug/problem seems to be a lack of inheritance across a stereotype class hierarchy... I cannot believe this to be a feature, I'd file a bug report with Sparx. Although I can see a use for it, I haven't used it myself. However, I would wonder that having that many tagged values that you worry about "tagged value sharing" through inheritance, there's something a little odd happening... after all, these are "extension" mechanisms to the intrinsic UML constructs, supplementation if you like, and not a mechanism to define a new language in its own right.

Now, back to your comment of not using profiles... Consider however, that when using a profile, your modeler can easily drag and drop stereotypes onto model elements --- and pick up any (pre-defined) tagged values (with their own enum values, defaults, etc.), color schemes, icons, etc. Further, it let's one person in the organisation define such properties --- and have it enforced across the entire group. Profiles are exportable, and can be re-imported into other models. Yes, I have found the 'sync' feature rather spurious (although generally not a huge issue).

Secondly, and this is something that I've learned only recently, I now package everything as a "MDG Technology". These are bundles that not only package profiles, but "global" tagged values, images, code and model transformation templates, data types into one convenient whole. "Technologies" can be exported and re-imported into other modelers' repositories.

In the most basic example, it lets you work on your modeling standards (your profile, or your MDGTechnology) in a "sandpit" model, refine it ad lib. and then simply distribute it to all modelers and their respective models.

cheers,
-olaf.

Jos Fries

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: Specialization of stereotypes in profile
« Reply #4 on: February 16, 2006, 11:01:51 am »
Hi Olaf,

Thank you for your extensive reaction.  I will file bug reports for the problems I noticed using profiles.

And you are right, I was trying to do something odd, defining a profile for EMF ecore by simply copying most of the ecore metamodel in the profile. I now abonded that approach for a more simple version of the profile.

I will investigate the use of "MDG Technology" files. Thank you for pointing me in that direction.

Regards,

Jos


olafk

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Specialization of stereotypes in profile
« Reply #5 on: February 16, 2006, 01:47:40 pm »
except I forgot to give you a link... check this post http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.pl?board=general;action=display;num=1139897710;start=0#3 where Neil's (aka KP) post contains a link to the MDG Technology stuff...