W3C home > Mailing lists > Public > www-voice@w3.org > January to March 2014

Re: History transition executable content - when is it executed?

From: Jim Barnett <1jhbarnett@gmail.com>
Date: Tue, 25 Mar 2014 18:05:57 -0400
Message-ID: <5331FDC5.5020808@gmail.com>
To: www-voice@w3.org
Yes, I'll use this newer version.

- Jim
On 3/25/2014 5:28 PM, Ate Douma wrote:
> For the record, I just saw I made a mistake in the proposal for 
> modifying the addDescendantStatesToEnter procedure.
>
> I'm sure everyone else already noticed, but just to make sure:
>
> The recording of the History transition in the default 
> defaultHistoryTransitionOnEntry table of course should only be done 
> when there is NO history recorded yet, not the opposite :)
>
> So, the pseudo-algorithm for addDescendantStatesToEnter procedure 
> could become something like:
>
>   procedure 
> addDescendantStatesToEnter(state,statesToEnter,statesForDefaultEntry, 
> defaultHistoryTransitionOnEntry):
>       if isHistoryState(state):
>           if historyValue[state.id]:
>               for s in historyValue[state.id]:
> addDescendantStatesToEnter(s,statesToEnter,statesForDefaultEntry)
>                   addAncestorStatesToEnter(s, state.parent, 
> statesToEnter, statesForDefaultEntry)
>           else:
>               // track this targeted History its transition on its 
> parent state id for processing in enterStates() after entering its parent
>               defaultHistoryTransitionOnEntry[state.parent.id] = 
> state.transition
>       ....
>
> instead of my erroneous earlier example.
>
>
> Regards,
> Ate
>
>

-- 
Jim Barnett
Genesys
Received on Tuesday, 25 March 2014 22:06:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:44 UTC