Book a Demo

Author Topic: Create Stereotype with fix ports  (Read 3423 times)

Chris271

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Create Stereotype with fix ports
« on: September 09, 2015, 09:09:53 pm »
Hey there,

I have the following issue:

I want to create stereotypes for a specific domain. The components of this domain have either one, two or three fix ports.

I need to build stereotypes with ports so when the System Architect uses the profile of this domain he should not need to think about how many ports a component has, he should see it he adds a stereotype to his system.

And the ports need to be named (e.g. souce_a or output_b).

I already tried to create a stereotypes with ports within a profile but they just ignore the ports when i create the profile (xml-file).

Is it possible to create stereotypes with fix ports? Or does someone know an alternative solution for my problem?

Thank you very much.

Chris


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create Stereotype with fix ports
« Reply #1 on: September 09, 2015, 10:42:59 pm »
Maybe I do not understand your problem correctly. But you can not create an element that already has ports with a profile. Maybe you can use a pattern for that?

q.

Chris271

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Create Stereotype with fix ports
« Reply #2 on: September 09, 2015, 11:31:26 pm »
Thank you for your reply,

so it is not possible to put a stereotype and a port together to one stereotype?

I mean the finished sterotype should consists of the stereotype (with alle the tagged values) and two ports (e.g.).


Ok, than i first have to read about patterns :).

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create Stereotype with fix ports
« Reply #3 on: September 10, 2015, 12:25:18 am »
It IS possible to define a port with a stereotype. But NOT an element that already has ports with a single stereotype. If you want to create an element with a fixed number of ports this is probably possible by using a pattern.

q.

Chris271

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Create Stereotype with fix ports
« Reply #4 on: September 10, 2015, 12:48:28 am »
Ok Thank you.

Now I only have to find out how i can connect an already existing Toolbox with Stereotypes (which should have ports) with patterns :)


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create Stereotype with fix ports
« Reply #5 on: September 10, 2015, 01:14:14 am »

Chris271

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Create Stereotype with fix ports
« Reply #6 on: September 11, 2015, 10:01:01 pm »
Hey qwerty,

thank you for your help, i solved my problem with patterns :).

Have a great day.
Chris