Re: [boost] Meta State Machine library review starts Monday

Hi Barend,
First I thought (intuitively) that the eUML was meant for output, but apparently that is not the case, it is an embedded language for defining state machines, right
Right. It is at the same time syntactic sugar and a way to concentrate more information in the transition table. For designers, it is sometimes helpful to be able to see the whole transition at the same time and in the same place.
Is is somehow possible to export an MSM to a Boost.Graph, either within the library, or in an example or separate utility headerfile?
Yes it is. A transition table is relatively easy to parse and thus it should be possible to generate a diagram from a transition table. As shown at the last BoostCon, I'm working on a tool doing just this, but a graph export might be a nice and useful addition. Regards, Christophe

Hi Christophe, Another question, WRT the member-function template <class Machine, class Event> void no_transition(Event const& e, Machine&, int state) { std::cout << "no transition from state " << state << " on event " << typeid(e).name() << std::endl; } All my states are structs. Why is the state an integer here? How can I (humanly or with MSM) translate that state to one of the states defined? It works, I get a message, but still don't know which transition was not provided... Regards, Barend
participants (2)
-
Barend Gehrels
-
Christophe Henry