Boost logo

Boost Users :

Subject: Re: [Boost-users] [statechart] state behaviour
From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2009-03-29 19:24:22


Hi

> Hi, two questions about states in statechart:
> 1. How (if possible) to implement this: a state upon an event generates an
> event and transits to another state?

With "generates an event", I guess you mean posts an event. Yes, you can do
that in a custom reaction

> 2. Can a state have private nondestroyable memory?

No. As a workaround you can put the variables into an outer state or the
state machine itself, but of course then they aren't private anymore.

HTH,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 

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