Boost logo

Boost Users :

Subject: [Boost-users] [SPAM] Re: Boost::MSM do_actions while in state
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2018-07-10 05:21:48


On 30/06/2018 07:25, IgnacioVizzo wrote:
> But I want the machine to DO an action ONCE the Entry_action has completed
> and BEFORE the states exits. This is sort of a token or mark, like it's used
> in petri nets and GRAFCETS, basically. I want to add this
> boost_msm_2.png
> <http://boost.2283326.n4.nabble.com/file/t371323/boost_msm_2.png>
>
> And the output for should be something like
> / OUTPUT
> // ==>entry_action
> // -DO ACTION-
> // [guard]
> // <==exit_action
> // -v- transition_action -v-
> // ==>entry_action
> // -DO ACTION-
> // [guard]
> // <==exit_action
> // -v- transition_action -v-
> // ==>entry_action

How is this different from adding your action to the end of the existing
entry_action?

If you instead want to trigger your action externally, then it probably
should be a state transition action; either back to the same state if
you want to be able to trigger it multiple times or to an alternate
state or substate if you want to only do it once.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net