Book a Demo

Author Topic: Struggling with more complex profiles  (Read 2419 times)

mr.sverrir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Struggling with more complex profiles
« on: September 06, 2008, 07:23:42 am »
Hello,

I am trying to come up with the profile where I want to extend some metaclasses (Class and Port at the moment)
At the same time I am changing how they look with Shape Script.
At the moment it looks something like this:




I was wondering whether there are mechanisms in the EA that would allow me for:
      
  • having more complex structures (possibly containing other stereotyped elements) within one stereotype, i.e., consisting already of a class and a set of predefined ports)
  • making such non-movable within their owner, i.e., I would like to have my ports only either at the bottom or on top of a class, stuck once and for all


I know it might sound a bit weird, but I want to use classes and ports as they are (as I want to  use transformations and code generation in the future).
I would be very grateful for any ideas you might have.

Thank you.

Regards,
Dariusz

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Struggling with more complex profiles
« Reply #1 on: September 06, 2008, 10:33:18 am »
Shapescripts allow you to test for tagged values, but not stereotypes for some reason. Perhaps you could provide a 'fixed' tagged value for your components, then test for that. If any of these tagged values were found the script would branch accordingly.

See query expressions under the shape script help section.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Struggling with more complex profiles
« Reply #2 on: September 08, 2008, 08:24:39 am »
For creating complex structures, you will need to look at patterns.

mr.sverrir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Struggling with more complex profiles
« Reply #3 on: September 08, 2008, 08:48:23 am »
Great! So far so good, the ports stay in the initial position (which will do), so I can compose the diagram with any complex structures I can think of. I haven't even thought about patterns before in my context.
Thanks a lot.  :)