|
Alex exoskeleton
ALEX SoftwareDocumentation
|
Abstract class representing a state in a StateMachine. More...
#include <State.h>


Public Member Functions | |
| State (StateMachine *p, const char n[]=NULL) | |
| Construct a new State object. More... | |
| ~State () | |
| bool | addArc (Transition *t) |
| Transition * | getActiveArc (void) |
| virtual void | entry (void)=0 |
| Called once when the state is entered. Pure virtual function, must be overwritten by each state. More... | |
| virtual void | during (void)=0 |
| Called continuously whilst in that state. Pure virtual function, must be overwritten by each state. More... | |
| virtual void | exit (void)=0 |
| Called once when the state exits. Pure virtual function, must be overwritten by each state. More... | |
| const char * | getName (void) |
| Returns the name of the state - Note that this. More... | |
| void | printName (void) |
| Prints the name of the state. More... | |
Public Attributes | |
| StateMachine * | owner |
| Pointer to the owning state machine. More... | |
Private Attributes | |
| Transition * | arclist [MAXARCS] |
| List of possible transitions. More... | |
| const char * | name |
| int | numarcs |
Friends | |
| class | StateMachine |
Abstract class representing a state in a StateMachine.
| State::State | ( | StateMachine * | p, |
| const char | n[] = NULL |
||
| ) |
| bool State::addArc | ( | Transition * | t | ) |
|
pure virtual |
Called continuously whilst in that state. Pure virtual function, must be overwritten by each state.
Implemented in ExoTestState, Sitting, InitState, Standing, StandingUp, and SittingDwn.
|
pure virtual |
Called once when the state is entered. Pure virtual function, must be overwritten by each state.
Implemented in ExoTestState, Sitting, InitState, Standing, StandingUp, and SittingDwn.
|
pure virtual |
Called once when the state exits. Pure virtual function, must be overwritten by each state.
Implemented in ExoTestState, Sitting, InitState, Standing, StandingUp, and SittingDwn.
| Transition * State::getActiveArc | ( | void | ) |
| const char * State::getName | ( | void | ) |
| void State::printName | ( | void | ) |
|
friend |
|
private |
| StateMachine* State::owner |
1.8.11