Re: [SCXML] history state in parallel state

Le 14 juil. 2015 à 12:13, Erik Verbruggen <erik.verbruggen@theqtcompany.com> a écrit :
> 
> I have a question about history states inside parallel states. Consider this state machine:
> 
> <scxml>
> <parallel id="p">
>    <history id="h">
>        <transition target="a2"/>
>    </history>
>    <state id="a">
>        <state id="a1"/>
>        <state id="a2"/>
>    </state>
> </parallel>
> </scxml>
> 
> The question is: what is the (initial) configuration of the state machine? If I read the standard correctly, it should be (p, a, a2). Is that correct? If not, what did I miss?

No, the initial configuration would be (p -> a -> a1). The history pseudo-states can only be "entered" when targetted explicitly, as you have noticed in the algorithm, and they are not added to any configuration.

   David

Received on Wednesday, 15 July 2015 06:00:10 UTC