[Boost-bugs] [Boost C++ Libraries] #6951: Entry pseudo state and anonymous transition problem

Subject: [Boost-bugs] [Boost C++ Libraries] #6951: Entry pseudo state and anonymous transition problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-29 13:53:11


#6951: Entry pseudo state and anonymous transition problem
--------------------------------------------------+-------------------------
 Reporter: Takatoshi Kondo <redboltz@…> | Owner: chenry
     Type: Patches | Status: new
Milestone: To Be Determined | Component: msm
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 '''Problem'''

 See fig1. If the event from Entry1 to State2_1 is none, Action1 is invoked
 unexpectedly.

 See fig2. If the event from Entry1 to State2_1 is Event1, Action1 is not
 invoked.

 My understanding is that Boost.Msm requires the same event for transitions
 that to entry pseudo state and from entry pseudo state.

 Consider fig3, it's impossible to place correct event from Entry1 to
 State3_1.

 '''Solution'''

 In the transition process, outer event(Event1) preserved, and in the final
 phase of processing transition preserved event is invoked.
 When the event from entry pseudo state is none, avoid preserving outer
 event.
 (fix_pseudo_entry_and_none_event.patch)

 '''Test'''

 I tested my patch and all existing tests. All of them passed successfully.
 The new test, PseudoEntry.cpp, is also included in
 fix_pseudo_entry_and_none_event.patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6951>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC