Author Topic: Avoiding stereotype clashes of MDG technologies  (Read 5896 times)

bockfu

  • EA User
  • **
  • Posts: 55
  • Karma: +4/-1
    • View Profile
Avoiding stereotype clashes of MDG technologies
« on: June 22, 2016, 03:48:46 pm »
What are the practices to avoid stereotype clashes of MDG technologies?

I am observing a problem I haven't resolved yet which I believe is due to a stereotype clash.

Steps leading to the issue:
  • Create MDG Technology called 'My Requirements'
  • 'My Requirements' defines a 'Functional Requirement' stereotype derived from the requirement metaclass
  • Import 'My Requirements' MDG technology into model
  • Import 'SYSMOD' MDG technology into model (Reference)
  • Create a Business Requirement element called REQ1 (Note: Element could be of any type other than "My Requirements::Functional Requirement"
  • Change type & stereotype of REQ1 to "My Requirements::Functional Requirement"

This is where I run into problems.
Expected Result: I am able to change type and stereotype to "My Requirements::Functional Requirement"
Actual Result: The type and stereotype changes to "SYSMOD::Functional Requirement"

Perhaps I am doing something wrong; on either the MDG development side, or EA usage side.

Any pointers?


KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Avoiding stereotype clashes of MDG technologies
« Reply #1 on: June 22, 2016, 04:09:07 pm »
Two bits of advice:
1. Disable any technologies that you aren't currently using.
2. It is better to create a new stereotyped element than to change the stereotype of an existing one. There is no confusion about which profile the stereotype is coming from, and properties with default values are set to default values.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Avoiding stereotype clashes of MDG technologies
« Reply #2 on: June 22, 2016, 05:46:04 pm »
Things are only what their name is. You can give one thing two names, but never two things one name. So what KP said: reduce the amount of names by turning off unneeded MDGs (that's the first I do in any EA-related project). And then: name things unique.

q.

Glassboy

  • EA Practitioner
  • ***
  • Posts: 1367
  • Karma: +112/-75
    • View Profile
Re: Avoiding stereotype clashes of MDG technologies
« Reply #3 on: June 23, 2016, 07:35:16 am »
I generally use a unique prefix for each MDG so each element is unique.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Avoiding stereotype clashes of MDG technologies
« Reply #4 on: June 23, 2016, 09:51:02 am »
I generally use a unique prefix for each MDG so each element is unique.
If I must qualify, I prefer suffixes. That way, the alphabetic sorting of the original values is preserved.

However, we have just been through a TOTAL revamp of (almost) our entire MDG and we have completely separated our stereotypes by using contracted forms.  The metatype in the MDG holds the user friendly name.  We will be ensuring that every metatype (both vertices and arcs) will have a unique visual representation and therefore we wont be displaying the contracted stereotypes anywhere.  Every item will have an attached stereotype (there won't be ANY nulls! - Yea!)

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

bockfu

  • EA User
  • **
  • Posts: 55
  • Karma: +4/-1
    • View Profile
Re: Avoiding stereotype clashes of MDG technologies
« Reply #5 on: June 25, 2016, 07:27:01 am »
Thank you all.  The comments helped me understand common practices to minimize and workaround the scenario I am in.