Public Member Functions | Protected Member Functions | Private Types | Private Attributes
RTT::scripting::ParsedStateMachine Class Reference

#include <ParsedStateMachine.hpp>

Inheritance diagram for RTT::scripting::ParsedStateMachine:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addParameter (const std::string &name, base::AttributeBase *var)
ParsedStateMachinePtr copy (std::map< const base::DataSourceBase *, base::DataSourceBase * > &replacements, bool instantiate=false) const
void finish ()
base::AttributeBasegetParameter (const std::string &name) const
std::vector< std::string > getParameterNames () const
VisibleWritableValuesMap getParameters () const
boost::shared_ptr
< StateMachineService
getService () const
std::string getText () const
bool inState (const std::string &name)
 ParsedStateMachine ()
void setName (const std::string &name, bool recursive)
void setService (boost::shared_ptr< StateMachineService > tc)
void setText (std::string text)
virtual ~ParsedStateMachine ()

Protected Member Functions

virtual void unloading ()

Private Types

typedef std::map< std::string,
base::AttributeBase * > 
VisibleWritableValuesMap

Private Attributes

boost::shared_ptr< std::string > _text
boost::shared_ptr
< StateMachineService
object
VisibleWritableValuesMap parametervalues

Detailed Description

State machine created by the scripting engine which represents a parsed state machine.

Definition at line 54 of file ParsedStateMachine.hpp.


Member Typedef Documentation

Definition at line 57 of file ParsedStateMachine.hpp.


Constructor & Destructor Documentation

Definition at line 209 of file ParsedStateMachine.cpp.

Definition at line 185 of file ParsedStateMachine.cpp.


Member Function Documentation

void RTT::ParsedStateMachine::addParameter ( const std::string &  name,
base::AttributeBase var 
)

Definition at line 228 of file ParsedStateMachine.cpp.

ParsedStateMachinePtr RTT::ParsedStateMachine::copy ( std::map< const base::DataSourceBase *, base::DataSourceBase * > &  replacements,
bool  instantiate = false 
) const

Create a copy, set instantiate to 'true' if instantiating a RootMachine.

Todo:
1. add copy/clone semantics to StateInterface and StateMachine. 2a. rewrite ParsedStateMachine::copy to use (1) 2b. remove all old StateMachine in DataSource code ( code is deprecated by StateMachineCommands implementation) 3. refactor SM copying code in StateGraphParser to this file (and vice versa). 4. in the end, no dynamic_casts should be needed anymore.

Definition at line 54 of file ParsedStateMachine.cpp.

Call this function if the state machine is parsed.

Definition at line 304 of file ParsedStateMachine.cpp.

AttributeBase * RTT::ParsedStateMachine::getParameter ( const std::string &  name) const

Definition at line 236 of file ParsedStateMachine.cpp.

std::vector< std::string > RTT::ParsedStateMachine::getParameterNames ( ) const

Definition at line 248 of file ParsedStateMachine.cpp.

Definition at line 243 of file ParsedStateMachine.cpp.

Definition at line 290 of file ParsedStateMachine.cpp.

std::string RTT::ParsedStateMachine::getText ( ) const [virtual]

Return the text to which getLineNumber() refers.

Reimplemented from RTT::scripting::StateMachine.

Definition at line 280 of file ParsedStateMachine.cpp.

bool RTT::ParsedStateMachine::inState ( const std::string &  name)

Definition at line 297 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::setName ( const std::string &  name,
bool  recursive 
)

Set the name of this machine. If recurisive == true, this also sets subMachines' names, to the given name + "." + the name they have been instantiated by in this machine.

Definition at line 253 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::setService ( boost::shared_ptr< StateMachineService tc)

Definition at line 293 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::setText ( std::string  text)

Definition at line 285 of file ParsedStateMachine.cpp.

void RTT::ParsedStateMachine::unloading ( ) [protected, virtual]

Informs this object that it got unloaded from an ExecutionEngine. Called by unload() before the engine pointer is cleared.

Reimplemented from RTT::scripting::StateMachine.

Definition at line 215 of file ParsedStateMachine.cpp.


Member Data Documentation

boost::shared_ptr<std::string> RTT::scripting::ParsedStateMachine::_text [private]

Definition at line 98 of file ParsedStateMachine.hpp.

Definition at line 100 of file ParsedStateMachine.hpp.

Definition at line 96 of file ParsedStateMachine.hpp.


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


rtt
Author(s): RTT Developers
autogenerated on Thu Jan 2 2014 11:35:45