1

Example StateChart

I've got a system, that is depending on another system. I want to display this in a statechart.

System 1: microwave_state with two states: On and Off

When microwave_button is pressed AND system 2 current state is true, then ON else Off

System 2: electricity_state with two states: True and False. When electricity bill is payed then True else False

How can I display that dependency in a statachart?

aydogdu
  • 115
  • 1
  • 1
  • 8

1 Answers1

1

You would do it like this:

enter image description here

The "current from system2" is just a guard for the transition. From my POV system2 is not a state machine, but a simple boolean value.

qwerty_so
  • 35,448
  • 8
  • 62
  • 86
  • I've added an alternative statechart above in my post - is that right, too? – aydogdu Jan 25 '17 at 12:51
  • That would be ok, though it's more an activity diagram since "checking current" is not really a state but a momentary/transient check. – qwerty_so Jan 25 '17 at 13:10