OpenJAUS SAE SDK  6.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
openjaus::model::StateMachineRunner Class Reference

#include <StateMachineRunner.h>

Inherits openjaus::system::Thread.

Public Member Functions

 StateMachineRunner ()
 
virtual ~StateMachineRunner ()
 
std::string getName () const
 
bool setName (std::string name)
 
void setMaxQueueSize (uint32 maxSize)
 
system::IPriorityQueuegetQueue ()
 
StateMachinegetStateMachine () const
 
bool setStateMachine (StateMachine *stateMachine)
 
void push (system::Prioritized *trigger)
 
void stop ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::system::Thread
 Thread ()
 
virtual ~Thread ()
 
 Thread (void *(*functionPointer)(void *), void *data)
 
bool isRunning () const
 Accessor to get the value of running. More...
 
bool setRunning (bool running)
 Accessor to set value of running. More...
 
void create ()
 Operation create. More...
 
void join ()
 Operation join. More...
 
void setThreadFunction (void *(*functionPointer)(void *), void *data)
 

Protected Member Functions

virtual void * run ()
 

Protected Attributes

bool active
 
std::string name
 
system::PriorityQueue< system::Prioritized * > priorityQueue
 
system::AutoFlushQueue< system::Prioritized * > queue
 
StateMachinestateMachine
 
std::list< State * > stateStack
 
- Protected Attributes inherited from openjaus::system::Thread
bool running
 
pthread_t thread
 
void * data
 
void *(* threadFunction )(void *)
 

Private Member Functions

virtual void onCreate ()
 Method is executed when create() is called but before the Thread is created and run. More...
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const StateMachineRunner &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const StateMachineRunner *object)
 

Additional Inherited Members

- Static Protected Member Functions inherited from openjaus::system::Thread
static void * start (void *classPointer)
 

Constructor & Destructor Documentation

◆ StateMachineRunner()

openjaus::model::StateMachineRunner::StateMachineRunner ( )

◆ ~StateMachineRunner()

openjaus::model::StateMachineRunner::~StateMachineRunner ( )
virtual

Member Function Documentation

◆ getName()

std::string openjaus::model::StateMachineRunner::getName ( ) const

◆ getQueue()

system::IPriorityQueue & openjaus::model::StateMachineRunner::getQueue ( )

◆ getStateMachine()

StateMachine * openjaus::model::StateMachineRunner::getStateMachine ( ) const

◆ onCreate()

void openjaus::model::StateMachineRunner::onCreate ( )
privatevirtual

Reimplemented from openjaus::system::Thread.

◆ push()

void openjaus::model::StateMachineRunner::push ( system::Prioritized trigger)

◆ run()

void * openjaus::model::StateMachineRunner::run ( )
protectedvirtual

Reimplemented from openjaus::system::Thread.

◆ setMaxQueueSize()

void openjaus::model::StateMachineRunner::setMaxQueueSize ( uint32  maxSize)

◆ setName()

bool openjaus::model::StateMachineRunner::setName ( std::string  name)

◆ setStateMachine()

bool openjaus::model::StateMachineRunner::setStateMachine ( StateMachine stateMachine)

◆ stop()

void openjaus::model::StateMachineRunner::stop ( )

◆ toString()

std::string openjaus::model::StateMachineRunner::toString ( ) const
virtual

Reimplemented from openjaus::system::Thread.

Friends And Related Function Documentation

◆ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const StateMachineRunner object 
)
friend

◆ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const StateMachineRunner object 
)
friend

Member Data Documentation

◆ active

bool openjaus::model::StateMachineRunner::active
protected

◆ name

std::string openjaus::model::StateMachineRunner::name
protected

◆ priorityQueue

system::PriorityQueue<system::Prioritized*> openjaus::model::StateMachineRunner::priorityQueue
protected

◆ queue

system::AutoFlushQueue<system::Prioritized*> openjaus::model::StateMachineRunner::queue
protected

◆ stateMachine

StateMachine* openjaus::model::StateMachineRunner::stateMachine
protected

◆ stateStack

std::list<State*> openjaus::model::StateMachineRunner::stateStack
protected

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