A behavior is a functor that gets an event as a parameter and performs an action. The action is generally a call into user code.
Not all types of states support 'entry', 'do' and 'exit' behaviors!
It is performed when a transition is executed.
Do behavior (do activity)
It is performed by a simple state while being in the state.
It is performed when a simple state or a composite state is exited. It is performed after any internal behavior within the state.
Default behavior function in yasmine
The default initialization value for a behavior is an empty functor.
behavior_function = std::function<
event& ) >;