XF Test Bench 3.3
statemachine04b.h
1#ifndef STATEMACHINE04B_H
2#define STATEMACHINE04B_H
3
4#include <string>
5#include "xf/behavior.h"
6
17class StateMachine04b : public XFBehavior
18{
19public:
21 ~StateMachine04b() override;
22
23protected:
24 XFEventStatus processEvent() override;
25
26 bool isTimeoutEvent(int timeoutId);
27 bool isRestartEvent() const;
28
29protected:
33 typedef enum
34 {
37
42 typedef enum
43 {
46 STATE_WAIT = 2
48
51};
52
53#endif // STATEMACHINE04B_H
Definition: statemachine04b.h:18
bool isRestartEvent() const
Returns true in case state machine is currently processing an evRestart event.
Definition: statemachine04b.cpp:81
XFEventStatus processEvent() override
Definition: statemachine04b.cpp:20
eMainState
Definition: statemachine04b.h:43
@ STATE_UNKOWN
Unkown state.
Definition: statemachine04b.h:44
@ STATE_INITIAL
Initial state.
Definition: statemachine04b.h:45
@ STATE_WAIT
Wait for timeout state.
Definition: statemachine04b.h:46
eTimeoutId
Definition: statemachine04b.h:34
@ Timeout_WAIT_id
Timeout id for WAIT.
Definition: statemachine04b.h:35
eMainState currentState_
Attribute indicating currently active state.
Definition: statemachine04b.h:49
bool isTimeoutEvent(int timeoutId)
Returns true in case state machine is currently processing a timeout.
Definition: statemachine04b.cpp:75
int timeout_
Timeout attribute counting rised timeouts in state machine.
Definition: statemachine04b.h:50