Book a Demo

Author Topic: How do you model port quality of service attributes?  (Read 4810 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
How do you model port quality of service attributes?
« on: May 27, 2021, 09:51:51 pm »
I have one class connected to 2 other classes via port connectors. All have the same interface type consisting of a single attribute. I want to model the case where once class has for example a timeout property for an attribute while the other class imposes a different timeout property for the same data. For example, maybe port P1 is okay with no timeout setting while the other one will allow 20ms.

What is the best way to model these one-off settings for interface attributes? I cannot specify it on the interface itself because then it would apply to all ports typed by that interface. On the port itself I do not know what I could use. Tagged values might help but then I run into problems when I need to specify timeouts for many attributes of the same interface. I am open to both SysML and UML solutions.



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How do you model port quality of service attributes?
« Reply #1 on: May 28, 2021, 01:15:08 am »
Well, being in your situation I would do a mix: make my own profile and borrowing from SysML.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How do you model port quality of service attributes?
« Reply #2 on: May 28, 2021, 07:58:35 am »
It looks like you can't set the run state for a port. With a part, you can right-click > Features > Set Property Values. I don't know why you can't do that for a port - could be an oversight, could be intentional, probably worth a bug report.
The Sparx Team
[email protected]