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

Re: What is the state configuration during onentry/exit is executed?

From: Jim Barnett <1jhbarnett@gmail.com>
Date: Sun, 23 Feb 2014 15:19:47 -0500
Message-ID: <530A57E3.7090709@gmail.com>
To: www-voice@w3.org
   Yes to both questions.  For example, here is the relevant part of the 
exitStates procedure.  It executes the onexit handlers before it removes 
s from the configuration :

for s in statesToExit:
        for content in s.onexit:
        for inv in s.invoke:

In enterStates, the state s is add to the configuration before the onentry routines are run

  for s in statesToEnter.toList().sort(entryOrder):
         if binding == "late" and s.isFirstEntry:
             s.isFirstEntry = false
         for content in s.onentry:

In general, you are "in" a state if it's in the global "configuration" variable.

- Jim

On 2/23/2014 2:40 PM, Andreas Gansen wrote:
> Hello,
> When we have S1 -> S2, we execute: onexit S1, T, onentry S2. My
> question is, are we already in S2 during execution of the entry
> handlers and are we still in S1 during onexit is running?
> Regards

Jim Barnett
Received on Sunday, 23 February 2014 20:20:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:04:01 UTC