XF Test Bench 3.3
statemachine02.h
1#ifndef STATEMACHINE02_H
2#define STATEMACHINE02_H
3
4#include <string>
5#include "xf/behavior.h"
6
16class StateMachine02 : public XFBehavior
17{
18public:
20 ~StateMachine02() override;
21
22protected:
23 XFEventStatus processEvent() override;
24
25protected:
29 typedef enum
30 {
33
38 typedef enum
39 {
46
48
49 static uint32_t nextId;
50 const uint32_t id;
51
52 int counter;
53};
54
55#endif // STATEMACHINE02_H
Definition: statemachine02.h:17
static uint32_t nextId
Static attribute providing identifier for next object.
Definition: statemachine02.h:49
int counter
Count down attribute used in state machine.
Definition: statemachine02.h:52
eTimeoutId
Definition: statemachine02.h:30
@ Timeout_PRINT_COUNT_id
Timeout id for WAIT.
Definition: statemachine02.h:31
XFEventStatus processEvent() override
Definition: statemachine02.cpp:24
const uint32_t id
Object identifier.
Definition: statemachine02.h:50
eMainState _currentState
Attribute indicating currently active state.
Definition: statemachine02.h:47
eMainState
Definition: statemachine02.h:39
@ STATE_INITIAL
Initial state.
Definition: statemachine02.h:41
@ STATE_CONDITION_01
Condition after print count state.
Definition: statemachine02.h:43
@ STATE_TERMINATION_01
Termination state.
Definition: statemachine02.h:44
@ STATE_PRINT_COUNT
Print count state.
Definition: statemachine02.h:42
@ STATE_UNKOWN
Unkown state.
Definition: statemachine02.h:40