Boost logo

Boost :

Subject: Re: [boost] [msm]mismatch document and code
From: Takatoshi Kondo (kondo_at_[hidden])
Date: 2011-06-30 21:56:59


On Wed, 29 Jun 2011 22:42:29 +0200
"Christophe Henry" <christophe.j.henry_at_[hidden]> wrote:

> > I'm reading the Boost.Msm document.
> >
> > I found some mismatches between the document and the code.
> >
> > Here is the document.
> > http://www.boost.org/doc/libs/1_46_1/libs/msm/doc/HTML/ch03s02.html
> > Section:Explicit entry / entry and exit pseudo-state / fork
> > State machine diagram "stm Fsm".
> >
> > I believe that the diagram should correspond to an example code below.
> > http://www.boost.org/doc/libs/1_46_1/libs/msm/doc/HTML/examples/DirectEntryTutorial.cpp
> >
> > ==1==
> > In the diggram, there are two transitions that are triggered with event5.
> > But outer one is event6 in the code.
> >
> > 168: _row < SubFsm2::exit_pt
> > 169: <SubFsm2_::PseudoExit1>, event6 , State2 >
> >
> >
> > ==2==
> > There is no transition in the diagram correspond to the code below.
> > 167: _row < SubFsm2 , event1 , State1 >,
> >
> > ==3==
> > There is no transition in the diagram correspond to the code below.
> > 136: _row < SubState2 , event6 , SubState1 >,
> >
> > I'm not sure which is correct the code or the diagram.
> > It's depends on what the author want to describe.
> >
> > Christophe, could you check that?
> >
> > Thanks,
> > Takatoshi
>
> Hi Takatoshi,
>
> Both are correct, they are just not in sync ;-)
> 1. was forgottten, 2. and 3. were to make the diagram more readable, but as
> it seems to bother you and as I just had to update the docs, I changed this
> on the way too (in the trunk).
>
> Regards,
> Christophe

Hi, Christophe.

I (double) checked the updated document in the trunk.
Everything is ok.

Based on the up-to-date document, I have some questions about
exit pseudo state.

I'll ask you another post. (more suitable subject)

Thanks,
Takatoshi.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk