Author Topic: Meta rel. for multiply extending stereotypes  (Read 9742 times)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Meta rel. for multiply extending stereotypes
« on: March 08, 2022, 09:56:51 pm »
If you have a stereotype that extends two different meta types (say Class and Object), is there a way to define meta relationships depending on the meta type? Let's say <<user>>-Class could only have Associations between each other and <<user>>-Object would be allowed only to have Connectors. (I would guess that meta-constraints arer the key here but I haven't dug there yet and thought that asking would be the faster way to find it out.)

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: Meta rel. for multiply extending stereotypes
« Reply #1 on: March 09, 2022, 08:14:34 am »
No.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Meta rel. for multiply extending stereotypes
« Reply #2 on: March 09, 2022, 09:10:38 am »
I now would guess that "no" rather means "not possible". Right?

Then the only way would be to have different stereotypes for both? Or to bite the dust and allow the union of connectors for the stereotype?!

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8064
  • Karma: +118/-20
    • View Profile
Re: Meta rel. for multiply extending stereotypes
« Reply #3 on: March 09, 2022, 03:46:30 pm »
I'm sorry.

The answer to your question:
If you have a stereotype that extends two different meta types (say Class and Object), is there a way to define meta relationships depending on the meta type?

Is... No. You can't define different different behaviors for the one stereotype based on the metaclass it is extending.

To answer your new question:
Then the only way would be to have different stereotypes for both?

Is... Yes. The only way to have different behavior is to use different stereotypes.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Meta rel. for multiply extending stereotypes
« Reply #4 on: March 09, 2022, 07:28:55 pm »
Ok. Saves me from a futile looking. Thanks :-)

q.