Book a Demo

Author Topic: Override stereotype of an inherited port  (Read 2216 times)

masc

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Override stereotype of an inherited port
« on: October 08, 2019, 05:23:44 pm »
Hi,

is it possible to "override" the stereotype of an inherited port, e.g.:
parent: SysML block "A" with port "P" stereotyped <<s1>>
child: SysML block "A_child" (specialized from "A"): stereotype <<s1>> of "P" shall be overridden by  stereotype <<s2>>

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Override stereotype of an inherited port
« Reply #1 on: October 09, 2019, 12:27:44 pm »
I'm afraid not. As far as UML and SysML are concerned, the port is exactly the same entity. It can't have a different set of stereotypes applied.

If you explicitly redefine the port P on the specialized block it's possible to change manually. It won't happen automatically though. If you were to define it, you would be with a «metaconstraint» { umlRole=redefinedElement }. But that's not a constraint we have implemented.