2

I started to study about state transition chart. As I see, it assumes all state transition is done instantly with no time consuming. But in most of my case, I'm heavily depending on asynchronous I/O, so it seems to be less efficient modeling them with the chart.

How do you think about how to represent asynchronous state change? Please recommend something to me :)

Eonil
  • 1,739

2 Answers2

1

As far as my knowledge goes for (UML) State diagrams it can't happen. If the state change isn't instantly there is obvious a in between state. In your example a state where your waiting for the IO to complete.

refro
  • 1,386
1

Not sure if you intentionally used the term state chart. State diagrams are more known ( see discussion for comparison )

In the comparison there also is a nice overview of different ways of modelling parallel states in a state chart. I don't know of a real notation of asynchronous state transitions in a state chart but when you model the events and possible states the can happen in parallel you might also show the information that you want. Or you might combine the state chart and state transition diagram.

If you did mean state transition diagram here is a nice overview of different ways of modelling asynchronous state transitions in a state transition diagram

Hope this helps.

KeesDijk
  • 8,968