Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
State Class Reference

#include <state.h>

Inheritance diagram for State:
Inheritance graph
[legend]

Public Member Functions

void addState (State *state)
 
void addTransition (Transition *transition)
 
long getCurrentTime ()
 
void init ()
 
void join ()
 
void run ()
 
virtual void runCode ()
 
void startThread ()
 
 State (int id, bool initial, int cycleDuration, State *parent, RunTimeGui *gui)
 
void stop ()
 

Static Public Member Functions

static void * threadRunner (void *)
 

Protected Attributes

bool active
 
StatecurrentState
 
int cycleDuration
 
bool displayGui
 
RunTimeGuigui
 
int id
 
bool initial
 
Stateparent
 
bool running
 
std::vector< State * > states
 
std::map< int, State * > statesById
 
pthread_t thread
 
std::vector< Transition * > transitions
 

Detailed Description

Definition at line 28 of file state.h.

Constructor & Destructor Documentation

State::State ( int  id,
bool  initial,
int  cycleDuration,
State parent,
RunTimeGui gui 
)

Definition at line 25 of file state.cpp.

Member Function Documentation

void State::addState ( State state)

Definition at line 61 of file state.cpp.

void State::addTransition ( Transition transition)

Definition at line 70 of file state.cpp.

long State::getCurrentTime ( )

Definition at line 129 of file state.cpp.

void State::init ( )

Definition at line 39 of file state.cpp.

void State::join ( )

Definition at line 135 of file state.cpp.

void State::run ( )

Definition at line 82 of file state.cpp.

virtual void State::runCode ( )
inlinevirtual

Reimplemented in State2, State1, and State0.

Definition at line 58 of file state.h.

void State::startThread ( )

Definition at line 78 of file state.cpp.

void State::stop ( )

Definition at line 125 of file state.cpp.

void * State::threadRunner ( void *  owner)
static

Definition at line 74 of file state.cpp.

Member Data Documentation

bool State::active
protected

Definition at line 31 of file state.h.

State* State::currentState
protected

Definition at line 34 of file state.h.

int State::cycleDuration
protected

Definition at line 37 of file state.h.

bool State::displayGui
protected

Definition at line 36 of file state.h.

RunTimeGui* State::gui
protected

Definition at line 43 of file state.h.

int State::id
protected

Definition at line 30 of file state.h.

bool State::initial
protected

Definition at line 35 of file state.h.

State* State::parent
protected

Definition at line 33 of file state.h.

bool State::running
protected

Definition at line 32 of file state.h.

std::vector<State*> State::states
protected

Definition at line 39 of file state.h.

std::map<int, State*> State::statesById
protected

Definition at line 41 of file state.h.

pthread_t State::thread
protected

Definition at line 44 of file state.h.

std::vector<Transition*> State::transitions
protected

Definition at line 40 of file state.h.


The documentation for this class was generated from the following files:


visualstates
Author(s):
autogenerated on Thu Apr 1 2021 02:42:20