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?
You would do it like this:
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.