Author Topic: MDG profile: Port typed by InterfaceBlock  (Read 239 times)

PDC

  • EA User
  • **
  • Posts: 86
  • Karma: +4/-0
  • Systems Engineer
    • View Profile
MDG profile: Port typed by InterfaceBlock
« on: May 16, 2024, 12:58:40 am »
I am defining a SysML profile using the metamodel tools.
I've defined a bespoke Stereotype that extends the metaclass 'Port' (let's call it 'PortNew').
I've defined a bespoke Stereotype of the metaclass InterfaceBlock using a Generalization (let's call it 'IFNew').
I've added 'PortNew' to a new toolbox and can add it to Blocks on a BDD. However, I want to be able to set up the profile so that any time I add a 'PortNew' to a Block it uses IFNew as the Port's interface definition - i.e. as 'Type' under the Port Element Attributes.

Is this possible? I can't figure out how to set it up in the metamodel.
tia
Phil