XF Test Bench 3.3
statemachine04a.h
1#ifndef STATEMACHINE04A_H
2#define STATEMACHINE04A_H
3
4#include <string>
5#include "xf/behavior.h"
6
16class StateMachine04a : public XFBehavior
17{
18public:
20 ~StateMachine04a() override;
21
22 void setNeighbour(XFBehavior * pNeighbour);
23 XFBehavior * getNeighbour() const;
24
25protected:
26 XFEventStatus processEvent() override;
27
28protected:
32 typedef enum
33 {
36
41 typedef enum
42 {
48
50
51 XFBehavior * pNeighbour_;
52};
53
54#endif // STATEMACHINE04A_H
Definition: statemachine04a.h:17
XFBehavior * pNeighbour_
Association to the neigbour state machine.
Definition: statemachine04a.h:51
XFEventStatus processEvent() override
Definition: statemachine04a.cpp:38
eMainState
Definition: statemachine04a.h:42
@ STATE_INITIAL
Initial state.
Definition: statemachine04a.h:44
@ STATE_WAIT
Wait state.
Definition: statemachine04a.h:45
@ STATE_SEND_RESTART
State sending an restart event.
Definition: statemachine04a.h:46
@ STATE_UNKOWN
Unknown state.
Definition: statemachine04a.h:43
void setNeighbour(XFBehavior *pNeighbour)
Definition: statemachine04a.cpp:21
StateMachine04a()
Constructor.
Definition: statemachine04a.cpp:6
XFBehavior * getNeighbour() const
Definition: statemachine04a.cpp:29
eTimeoutId
Definition: statemachine04a.h:33
@ Timeout_WAIT_id
Timeout id for WAIT.
Definition: statemachine04a.h:34
eMainState currentState_
Attribute indicating currently active state.
Definition: statemachine04a.h:49