Recent Forum Posts
From categories:
redboltzredboltz 04 Mar 2016 09:04
in discussion Hidden / Per page discussions » Deferred Events

I understand the point of the question. AFAIK, there is no direct way to defer "ANY OTHER" events. You need to list up all event that you want to defer. Other events are consumed.

by redboltzredboltz, 04 Mar 2016 09:04
redboltzredboltz 17 Jul 2014 06:35
in discussion Hidden / Per page discussions » Deferred Events

Could you give me a concrete scenario? Which is the current state and which event occur?

by redboltzredboltz, 17 Jul 2014 06:35
Chuck (guest) 08 Jul 2014 14:46
in discussion Hidden / Per page discussions » Deferred Events

So, how can we handle "ANY OTHER" events?
In this example if we would want that for event 1 and 2 we do state changes, and for ANY other will be deferred..

by Chuck (guest), 08 Jul 2014 14:46
redboltzredboltz 30 Apr 2014 09:53
in discussion Hidden / Per page discussions » Deferred Events

Because an anonymous transition has higher priority than deferred events. In the second example, the transition from State2 to State3 is an anonymous transition. 'Anonymous transition' means transition without event.
When the current state is State2, there are two outgoing transitions. One is the anonymous transition, the other is to State5 transition that have Event1 as a trigger. Then, the anonymous transition is chosen. Deferred event is not consumed. After transitioning to State3, deferred event is fired. So the transition from State3 to State4 is occurred. That why, State5::on_entry() is not displayed.

by redboltzredboltz, 30 Apr 2014 09:53
Solomon (guest) 09 Apr 2014 15:51
in discussion Hidden / Per page discussions » Deferred Events

why no display "State5::on_entry()" in second sample

by Solomon (guest), 09 Apr 2014 15:51
redboltzredboltz 11 Dec 2013 11:37
in discussion Hidden / Per page discussions » Choice Pseudo State

Thank you for your comment.
Please check the section 'If/else branch' in the previous page http://redboltz.wikidot.com/junction-pseudo-state

You need to place the else branch on the top of outgoing transitions from the choice state.
Boost.Msm evaluates outgoing transitions' guards from bottom to top.

by redboltzredboltz, 11 Dec 2013 11:37
Qi Zongjun (guest) 06 Dec 2013 00:20
in discussion Hidden / Per page discussions » Choice Pseudo State

There is an issue with this approach. If we swap the 2nd and 3th row inside the transition table, then it is actually going throw the else branch!!!

The output will be:
// > Send Event1
// ActionVal1Assign val = 1
// ActionElseBranch val = 1

by Qi Zongjun (guest), 06 Dec 2013 00:20

comment test content.

comment test title by redboltzredboltz, 04 Jun 2012 01:56