| 
    XF Test Bench 3.3
    
   | 
 
#include <statemachine04a.h>


Public Member Functions | |
| StateMachine04a () | |
| Constructor.  | |
| void | setNeighbour (XFBehavior *pNeighbour) | 
| XFBehavior * | getNeighbour () const | 
Protected Types | |
| enum | eTimeoutId { Timeout_WAIT_id = 1 } | 
| enum | eMainState { STATE_UNKOWN = 0 , STATE_INITIAL = 1 , STATE_WAIT = 2 , STATE_SEND_RESTART = 3 } | 
Protected Member Functions | |
| XFEventStatus | processEvent () override | 
Protected Attributes | |
| eMainState | currentState_ | 
| Attribute indicating currently active state.  | |
| XFBehavior * | pNeighbour_ | 
| Association to the neigbour state machine.  | |
Implements a state machine sending its neighbour state machine an evRestart event every four seconds.
Following you will find the state machine implemented by StateMachine04a:
      
  | 
  protected | 
      
  | 
  protected | 
| XFBehavior * StateMachine04a::getNeighbour | ( | ) | const | 
Returns reference to neighbour state machine.
      
  | 
  overrideprotected | 
Implements state machine behavior.
| void StateMachine04a::setNeighbour | ( | XFBehavior * | pNeighbour | ) | 
Sets the association to the neighbour state machine. Call this method prior the start the state machine.