Author Topic: Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx  (Read 154 times)

msh

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx
« on: September 29, 2018, 02:15:49 am »
Hi, i try to model the communication between components via e.g. RS422

a) one component is an incremental sensor which gives some events from lines A,B,C
b) one component has a plug for receiving this data
c) another component has a plug for other data

is there a way to model that in sparx, to prevent a connection with c) without using scripts?
i thought this may work with an association class but i can connect a) with b) and c) without problems.


Thanks a lot!!

qwerty

  • EA Guru
  • *****
  • Posts: 9684
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx
« Reply #1 on: September 29, 2018, 06:48:46 am »
Not sure about your background, but you can prevent connector creation by using the EA_OnPreNewConnector subscription in an add-in.

q.

msh

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx
« Reply #2 on: October 01, 2018, 07:21:48 pm »
wow, thank you for the very fast answer!
maybe my questions was not so accurate, but is it possible to make it from the model only, without addin or script?

My understanding is that two ports, which have no type compatibility e.g. properties or instances of  "block or class:" water and "block or class:" voltage should not be connectable without interface or other from the "block or class" definition.

many thanks again!

qwerty

  • EA Guru
  • *****
  • Posts: 9684
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx
« Reply #3 on: October 01, 2018, 08:01:15 pm »
SysML is a MDG which means it might come with own add-ins. Not sure about SysML since I don't have it in my installation. If there are constraints defined in SysML which the MDG does not support you might report a bug. I can't speak for SysML issues since I have only little expertise in that area.

However, if you are after a quick solution you have to go the add-in way.

q.

PeterHeintz

  • EA User
  • **
  • Posts: 749
  • Karma: +45/-17
    • View Profile
Re: Sysml Modeling Embedded Connectors/Plugs and Signals in Sparx
« Reply #4 on: October 01, 2018, 08:38:42 pm »
No, there are now build-in constraints in EA which disallow to connect ports of incompatible types. You have to take care about that.
Best regards,

Peter Heintz