1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 <2006> 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: snc/seq enhancements ... local-variable access |
From: | Eric Norum <[email protected]> |
To: | "Laznovsky, Michael" <[email protected]> |
Cc: | Tim Mooney <[email protected]>, [email protected] |
Date: | Thu, 6 Apr 2006 13:48:43 -0500 |
Hi- while this might be fairly easy to do given the way seq does its
internal bookkeeping, seems to me it would muck up the relatively clean
DFA state-machine model we have now. I've handled cases like you describe
(e.g. an "ABORT" button that allows interrupting a long series of states)
by adding extra intermediate states, as in:
state A { entry { flag = OK; } when (<event>) { if (trouble) flag = BUBU; } state A_check }
state A_check { when (flag == BUBU) { /* uh oh! */ } state A_abort when () { } state B /* next state */ }
The "out-of-order" transitions I mentioned referred to a future debugging
environment, where it might be useful to interactively force a transition
to an arbitrary state.
-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793