Author Topic: Extending SysML with Profile  (Read 3761 times)

FlunkStort

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Extending SysML with Profile
« on: May 18, 2022, 12:04:33 am »
I managed to create my own profile, export/import it, and can see/use the results within my new toolbox.

All I did so far was create a stereotype of <<block>> that I named <<function>>. (So I have a diagram with a metaclass object named Class, a stereotype object named "SysML1.4::block", and a stereotype object named "function". There is an extends relationship from function to Class, and a generalization connector from function to the SysML1.4::block object.)

My questions are:

  • My toolbox shows "Block" as the name of my custom object... is there any way I can make this display Function?
  • In order to use Composition connectors between function blocks, I have to use the SysML Block Definition Toolbox, I cannot use the quick connect functionality (click the arrow next to the block and drag to the desired block). Is there any way to enable composition connectors with my custom stereotypes? Or, is there a way to add composition connector to my custom toolbox so I dont have to switch so often?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Extending SysML with Profile
« Reply #1 on: May 18, 2022, 07:24:46 am »
I'm offline at the moment, but right from my head I seem to remember the answers. There's a _metatype (or was it _metaclass? I always get mixed up with it) which you can assign (IIRC - again - in the stereotype; just consult the help) so you have Function iso. Block. Makes ne aw elemens also with appear with Function<n>.

For the connectors you need to resort to metaconstraints. The old QL matrix should not be touched (and never shoud have been implemented as it was and is). It' a bit of a brain tweezer and needs some time to learn.

q.

kylerbker

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Extending SysML with Profile
« Reply #2 on: May 19, 2022, 11:50:28 pm »
Yes, I totally agree with the comment above.
Work at the Outlooktransfer.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Extending SysML with Profile
« Reply #3 on: May 20, 2022, 08:04:59 am »
By default, the quicklinker filters to only show the elements and connectors in the current toolbox. So you will want to add "UML::Composition" to your custom toolbox.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Extending SysML with Profile
« Reply #4 on: May 20, 2022, 06:08:56 pm »
You can turn off that filtering (rather clumsy in the context). Anyway one should do that only for test purpose.

q.