Questions tagged [boost-statechart]

Boost.Statechart is a C++ library allowing you to easily and quickly define state machines.

Boost.Statechart is a C++ library allowing you to easily and quickly define state machines. It is not as high performance as the alternative Boost.MSM but it is more scalable and compiles considerably faster.

44 questions
1
vote
1 answer

How to add more than 20 transitions to a state in Boost::Statechart?

I have to admit that I'm rather new to C++ and Boost Statecharts. I played around a little bit with the Statechart library and wanted to construct some "bigger" statemachines. I give a very simple example of my problem. Lets assume a statemachine…
euschen
  • 23
  • 5
1
vote
2 answers

Help for Boost.Statechart bug

Any ideas how to fix this? using 1.39_0 on ubuntu 8.10 w/g++ 4.3.2 In the following statechart, the phrase "BUGGY" is printed three times. One would expect the event would only trigger one "BUGGY". In the case of the project I am working on, I…
KitsuneYMG
  • 12,753
  • 4
  • 37
  • 58
0
votes
0 answers

Get state_machine object from fifo_scheduler::process_handle object

I have covered state_machine object with wrapper object to hide asynchronous_state_machine initialization. class MyObject : public sc::asynchronous_state_machine< MyObject, MyObjectStateIdle, Scheduler, Allocator >; …
0
votes
0 answers

How to use a vector/list to hold Curiously Recursive Template Pattern's derived classes' objects?

I'm using Boost Statechart Event for a State-Machine. I'm thinking of a vector/list to hold events. I tried the following - template struct Event : public boost::statechart::event { Event(const T & event) : m_event(event) …
r18ul
  • 1,082
  • 2
  • 12
  • 30
0
votes
1 answer

Ways to implement condition-based inner initial state selection in boost::statechart?

What are some possible ways in boost::statechart to implement the initial state selection described on Slide 25 of Comparison of Harel's Statecharts & UML Statecharts ? "On entering the super-state, which state (whether X,Y,Z) to enter depends on…
Legacy-Dev
  • 56
  • 1
  • 5
0
votes
1 answer

boost asynchronous_state_machine

Is it possible to get ref to scheduler from processor_handle for asynchronous_state_machine? Code: struct A { A(sc::fifo_scheduler<>::processor_handle& h):player_ref(h){} sc::fifo_scheduler<>::processor_handle& player_ref; void…
alex2005
  • 1
  • 1
0
votes
1 answer

IVR Call flow State Machine

i'm trying to implement a state machine that can handle the flow of the calls inside an IVR using the Boost Statechart Library, but im very green on C++ and need a hand with some basics. Lets say my call flow looks this: (focus on first 2 states…
RonEskinder
  • 527
  • 8
  • 24
0
votes
0 answers

Boost statechart interaction

I have two statecharts (FSM_A and FSM_B) implemented using boost::statechart. Is it safe to process an event from FSM_A in order to trigger a transition in FSM_B? Should I use two async_state_machine? Or maybe a common outermost state? Here is an…
Cristiano
  • 856
  • 10
  • 24
0
votes
1 answer

How to add transition delays in Boost::Statechart

How can I implement non-blocking transition delays in Boost Statechart?
legotron
  • 61
  • 4
0
votes
1 answer

periodic state machine with boost statechart

I want to implement a state machine that will periodically monitor some status data (the status of my system) and react to it. This seems to be something quite basic for a state machine (I've had this problem many times before), but I could not find…
brice rebsamen
  • 664
  • 6
  • 11
0
votes
1 answer

boost::statechart ---posting a "serial timeout" event

I've been using boost's asynchronous statechart to write a program. In this program I communicate with another device using an asynchronous serial port. I have a state that waits for a confirmation from the device over the serial port and then posts…
Andre
  • 115
  • 1
  • 7
0
votes
1 answer

Using boost::bind to call a function in boost::Statechart

I'm trying to write a program to upload a file to an arduino. The program can open a serial port and receive data from the arduino. The problem comes when I try to use a callback to a function in a statechart state, the program crashes. I have…
Andre
  • 115
  • 1
  • 7
0
votes
1 answer

Can I custom react to a event in multiple states in different orthogonal reigions using boost.statecharts?

My use case is similar to this SSCCE. The problem is that if no transition occurs I need to forward the events, which seems unnatural, for them to be processed by the other orthogonal regions. More importantly though in the case I need to transition…
odinthenerd
  • 5,422
  • 1
  • 32
  • 61
0
votes
1 answer

Boost statechart, communication between separate FSMs

let's say I have created several separate FSM classes inheriting from statechart. Then, I instantiate those objects, and I would like them to be able to trigger events in each other; for example the first FSM would enter a "ON" state and would…
fabrice79
  • 1
  • 1
1 2
3