Book a Demo

Author Topic: SysML best practice - representing "Or" allocations  (Read 4389 times)

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
SysML best practice - representing "Or" allocations
« on: November 17, 2020, 06:16:00 am »
In SysML, suppose I have an activity that I want to allocate to Block 1 or Block 2, but not both. I can set the multiplicity to "0..1" for both blocks. I think that means it could be on no blocks, one block, or both blocks. I want to restrict it to one of the two blocks, but not both.

Any suggestions on how to be specific allocating to one or the other but not both?

Here's a diagram: https://ibb.co/mbWyvqc

Thanks
Bruce

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: SysML best practice - representing "Or" allocations
« Reply #1 on: November 17, 2020, 07:09:18 am »
How about attaching a constraint?

q.

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: SysML best practice - representing "Or" allocations
« Reply #2 on: November 17, 2020, 07:28:58 am »
Constraints seem to be tied to parametrics.  Maybe they could be coerced to provide the information, but that does not seem to be their intended use. Thanks for the suggestion.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: SysML best practice - representing "Or" allocations
« Reply #3 on: November 17, 2020, 08:16:25 am »
Constraints seem to be tied to parametrics.  Maybe they could be coerced to provide the information, but that does not seem to be their intended use. Thanks for the suggestion.

Are you thinking of constraint blocks? qwerty's suggestion was for UML constraint elements - look like a comment, second item in the "Common" toolbox.
The Sparx Team
[email protected]

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: SysML best practice - representing "Or" allocations
« Reply #4 on: November 17, 2020, 11:22:50 am »
Thanks! I hadn't noticed those before. They could work - I'm glad they are full model elements and not just notes that show up on one diagram.

I'm open to other suggestions as well.

- Bruce