----- Original Message -----
Newsgroups:
gmane.comp.lib.boost.user
Sent: Wednesday, May 22, 2013 4:12
PM
Subject: [msm] Manually setting next
state
Is there a way to manually set the next state
for the state machine.
I have an orthogonal region defined for
handling errors, where Error is an interruptible
state.
----------
-------------
| | ----------->|
Error |
| Ok
|
| |
Is there a way to do this ?
Thanks!
Samriti
_______________________________________________
Boost-users mailing
list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
technically, yes, you could call current_state() on
the fsm, which gives you an array of ids for all regions, which you could
change, but it's not good style, the UML conform way would be to send yourself
an event in the transition Error -> Ok, which would move the first region to
the initial (or any other) state. Of course, this costs more
transitions.
HTH,
Christophe