Dummy State for testing.
More...
#include <MockState.hpp>
|
| MockState (int id) |
| Creates a MockState and assigns it an id.
|
|
virtual bool | setup () |
| Sets an internal variable indicating that this function has been called.
|
|
virtual bool | loop () |
| Sets an internal variable indicating that this function has been called.
|
|
virtual bool | cleanup () |
| Sets an internal variable indicating that this function has been called.
|
|
virtual int | evaluateConditions () |
| Returns the internal variable value as condition evaluation result.
|
|
virtual bool | read (yarp::os::ConnectionReader &connection) |
| Reads an incoming message that changes the internal state of the State.
|
|
const std::string & | getStateId () const |
| Returns the string that identifies the state.
|
|
|
int | id |
|
int | internal_variable |
|
int | state_history |
| Bitmask that stores the execution flow stages this State has passed through.
|
|
|
static State * | getEndState () |
|
std::string | state_id |
| Name of the current state.
|
|
Behavior:
- Outputs each transition to a state through the debugPort
- Saves the value received in the commandPort and returns it at condition evaluation
The documentation for this class was generated from the following files:
- src/libraries/StateMachineLib/MockState.hpp
- src/libraries/StateMachineLib/MockState.cpp