Book a Demo

Author Topic: Doubts about operations of a State in SysML  (Read 2650 times)

Ernesto

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Doubts about operations of a State in SysML
« on: August 06, 2020, 09:11:08 pm »
Hi everybody!  :)

I have some "rookie" questions about operations of a State in SysML:

1) Is it legal for a state to have several operations of the same type, for example 2 (or more) "entry" or "do" operations?

2) If yes, how are they executed? For example, if the State has two "entry" operations, are they executed at the same time (i.e. in parallel) or in sequence? What about "do" and "exit" operations?

I know that EA gives the possibility to add more operations of the same type but searching on internet or in literature I have never seen a state where there were more operations of the same type...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Doubts about operations of a State in SysML
« Reply #1 on: August 06, 2020, 09:33:38 pm »
P. 304 of UML 2.5 shows figure 14.1.

You see that there is 0..1 entry, 0..1 exit and 0..1 do Behavior.

Later in chap. 14.2.3.4.3 you find a detailed explanation when which is exected.

SysML is likely the same. I didn't skimm their specs.

q.
« Last Edit: August 06, 2020, 09:35:14 pm by qwerty »

Ernesto

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Doubts about operations of a State in SysML
« Reply #2 on: August 06, 2020, 10:29:39 pm »
thank you qwerty for your answer!