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

Re: revisiting preemption

From: chris nuernberger <cnuernber@gmail.com>
Date: Mon, 18 Feb 2013 10:01:51 -0700
Message-ID: <CAG=GWvfJHyQaA00bsn-8EdRJn+EGJWy4iZgRF8qY+2W2W596DA@mail.gmail.com>
To: Jim Barnett <Jim.Barnett@genesyslab.com>
Cc: "www-voice@w3.org" <www-voice@w3.org>
1.  I would of course like another definition.

2.  My feeling is to preempt transitions if their source state is in the
exit set of another transition regardless of it they are targetless or not.
 The reason is because it leaves the algorithm open to not even consider
transitions from atoms in the configuration that are in a previous
transition's exit set.  This could be a significant speed increase in some
situations because you can trim the atom list as you process transitions.
 Walking up from the atom to the root to find a transition (and run the
conditions and such) sometimes does take time, so a short circuit as
powerful as not having to consider the atom at all is a big win IMO.

3.  I would vote for as modular and functionally decomposed pseudo-code as
possible as it is easier to translate into functional code.


On Mon, Feb 18, 2013 at 7:58 AM, Jim Barnett <Jim.Barnett@genesyslab.com>wrote:

>  There seems to be agreement that the existing definition of preemption
> is vague and confusing.   It can be made precise, but that still may leave
> it confusing.  This leaves us with three questions:****
> ** **
> **1.       **Do we want another definition of preemption?  The obvious
> candidate is UMLís definition:  two transitions conflict if their exit sets
> have a non-null intersection. We can tweak the definition based on
> transition classes/types to have the same semantics, so the real question
> is:  which definition is easier to understand?****
> **2.       **What do we want to do about targetless transitions?  They
> have an empty exit set, so on the UML definition they donít preempt any
> transitions and donít preempt any other transitions.  The existing
> definition (based on transition types/classes) says (in effect) that a
> targetless transition is preempted by any preceding transition that exits
> its source state.  This may seem intuitively clear, but it isnít necessary
> by any means.  The whole point of preemption is to block transition sets
> that could produce an illegal configuration, and targetless transitions
> will never do that.   By not preempting targetless transitions, we end up
> with the largest set of transitions that can be guaranteed not to cause
> problems.****
> **3.       **When we discussed this issue in the past, we decided that
> preemption is so complicated that it should be defined in a separate place,
> hence we have ĎfilterPreemptedí as a separate function.  On the other hand,
> the filtering could be folded  back into the selectTransitions functions,
> particularly if it is based on the intersection of exitSets.   So we could
> consider getting rid of filterPreempted as a separate function.  However,
> if we do this, we have to insert the same conflict/preemption-detecting
> logic in both selectEventlessTransitions and selectTransitions, so it may
> be better to keep it factored out into a  separate function. ****
> ** **
> **-          **Jim****
> ** **

A foolish consistency is the hobgoblin of little minds - Emerson
Received on Monday, 18 February 2013 17:02:22 UTC

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