[Qt-interest] unable to use more than 1 transition added to a state (QT StateMachine Framework)

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Thu Mar 18 13:47:46 CET 2010


On Thu, Mar 18, 2010 at 5:35 PM, Sean Harmer
<sean.harmer at maps-technology.com> wrote:
> This way you can "override" the behaviour that a child state inherits from its
> parent. All you need to do is to provide a pointer to the s0 state to this
> specialised transition class when you create it so that it knows what to
> check.

But this hardcodes the state s0 in its transition check...I guess I
can take the state to skip as a param to the constructor and use it in
the eventTest....

Or should the HSM be constructed in a different way so that such hacks
are not needed?

-mandeep

>
> This will do away with the need for all of your "dummy" transitions and keeps
> your SM neat by simply providing some extra guards on the transitions where
> needed.
>
> HTH,
>
> Sean
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



More information about the Qt-interest-old mailing list