Book a Demo

Author Topic: General stereotype  (Read 5740 times)

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
General stereotype
« on: October 09, 2009, 07:12:10 pm »
Hi
I'd like to create a stereotype in a custom profile that can be applied to every element.
I've seen somewhere else the example using a "Packageable element" as base metaclass but I cannot find it in EA.

I've tried with classifier and class as metaclass but it doesn't work.

Any ideas?

Many thanks.
Davide
« Last Edit: October 09, 2009, 07:19:28 pm by davideferrari »

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: General stereotype
« Reply #1 on: October 09, 2009, 07:38:39 pm »
Hmmm, I'm just wondering if you're doing the semantically right thing here. Sounds that creating an appropriate tagged value might be the more right way. Stereotypes are for specialization of certain metaclass traits and behavior, thus they cannot really be applied to arbitrary elements in the model, right?

WBR,
Günther

deefer

  • EA User
  • **
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: General stereotype
« Reply #2 on: October 09, 2009, 07:49:33 pm »
Hi Günther,

take a look here....
http://example.system-modeling.com/sysmod_sysml_example_model_weilkiens.html

under SYSMOD\variants\Variant Stereotypes

The "variation point" stereotype is used for blocks (class) and requirements.

The stereotype is used to mark the element and to add a tagged value automatically.

« Last Edit: October 09, 2009, 07:51:27 pm by davideferrari »

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: General stereotype
« Reply #3 on: October 10, 2009, 02:38:52 am »
Create a base stereotype A with the tagged values of your choice.
Then create a stereotype for requirements and one for eg. classes as usual and derive both from A using a generalisation relationship.

This should work and give you unique tagged values.

Oliver

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: General stereotype
« Reply #4 on: October 12, 2009, 08:43:45 pm »
Hi Oliver,

Just for clarification: Which (parent-)metaclass should be used for the base stereotype? I thought (or guessed) that the generalization relationship to the metaclass of a stereotype must have a unique path. Or is it that this stereotype doesn't need to have a parent metaclass at all?
I have overseen in my answer though that defeer want's to use stereotypes to define and apply the tagged values I was talking about.

WBR
Günther

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Aren´t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: General stereotype
« Reply #5 on: October 12, 2009, 11:59:41 pm »
Quote
Hi Oliver,

Just for clarification: Which (parent-)metaclass should be used for the base stereotype? I thought (or guessed) that the generalization relationship to the metaclass of a stereotype must have a unique path. Or is it that this stereotype doesn't need to have a parent metaclass at all?

Do not nail me on it but I believe that the metaclass of the stereotype does not matter and that it can even have none.

Attribute inheritance is working all over the place in here and if I remember correctly it works here, too.

Oliver