Book a Demo

Author Topic: Source and destination types in UML profile  (Read 15713 times)

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Source and destination types in UML profile
« on: December 16, 2009, 01:28:48 pm »
Hi,
is it possible to specify the allowable source and destination Types for a stereotyped Connector in a UML Profile?

I would like to constrain the creation of Connectors with particular stereotypes to the Types that are relevant for them; I don't want to leave it up to the modeller to remember all the relevant types and their connectors.

I haven't been able to find a way of doing that. Only via the quick linker. The trouble there is that it is said that the links have to be part of the same profile as the Types they are linking.

Any thoughts welcome.
Cheers,
Andrew.
Regards,
Andrew Warner.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Source and destination types in UML profile
« Reply #1 on: December 16, 2009, 02:20:18 pm »
Quote
[size=18]...[/size]
I haven't been able to find a way of doing that. Only via the quick linker. The trouble there is that it is said that the links have to be part of the same profile as the Types they are linking.
[size=18]...[/size]
Hi Andrew,

I'm not sure that this statement is correct.  I've got QuickLinker definitions in one profile that link elements not defined in the profile.

Have you actually tried it and it fails?

Perhaps the Sparxians can give a more definitive answer.

However, it seems to me that if you define the link in terms of the metatype with the stereotype, EA should still be able to figure out what's going on.

I'd like to definitively know the answer to this.

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

Andrew Warner

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Source and destination types in UML profile
« Reply #2 on: December 17, 2009, 03:25:38 pm »
Thanks Paolo,
I tried it and it works. I've put a definition for a link between two stereotypes, neither of which is defined in my UML profile and it worked fine. Better, as it happens, than the ones that are defined in the profile but that's another story.

Here's the help text that I based my assumption on. Perhaps I misunderstood it.

Quote
The same applies if a profile is included within a technology, with the proviso that the QuickLink element must be in the same profile as the link stereotype definitions. This means that a technology could have a set of Quick Link definitions for each profile.

Thanks again,
Andrew.
Regards,
Andrew Warner.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Source and destination types in UML profile
« Reply #3 on: December 17, 2009, 03:38:36 pm »
Quote
Thanks Paolo,
I tried it and it works. I've put a definition for a link between two stereotypes, neither of which is defined in my UML profile and it worked fine. Better, as it happens, than the ones that are defined in the profile but that's another story.
Please tell, as I'm interested in this also.
Quote
Here's the help text that I based my assumption on. Perhaps I misunderstood it.

Quote
[size=18]...[/size]
Yes, I'd understand the same as you.  Luckily I hadn't read that before I set up the QuickLinker...   ;D

Perhaps Sparxian Roy can confirm/deny our understanding of the Hlep text and whether it is correct or not.

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