Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

RobotFlow::FSMGenerator Class Reference

Inheritance diagram for RobotFlow::FSMGenerator:

Inheritance graph
Collaboration diagram for RobotFlow::FSMGenerator:

Collaboration graph

Public Member Functions

 FSMGenerator (string nodeName, ParameterSet params)
void calculate (int output_id, int count, Buffer &out)
virtual ObjectRef getOutput (int output_id, int count)
virtual void request (int outputID, const ParameterSet &req)
virtual void initialize ()
virtual void reset ()
virtual int addOutput (const std::string &outputName)
virtual int addInput (const std::string &inputName)
virtual void initializeBuffers ()
virtual void performRequests ()
virtual ObjectRef getOutputNamed (const std::string &outputName, int count)
virtual void connectToNode (std::string in, Node *inputNode, std::string out)
virtual bool hasOutput (int output_id) const
ObjectRef getInput (int inputID, int count)
virtual void stop ()
virtual void cleanupNotify ()
std::string getName ()
virtual void verifyConnect ()
void printOn (std::ostream &out=std::cout) const
void setUINode (UINode *_uinode)
void ref ()
void unref ()
int unique ()
virtual void destroy ()
virtual void serialize (std::ostream &out) const
virtual void unserialize (std::istream &in)
virtual void doesNotUnderstand (std::string method)
virtual bool isNil () const
virtual void prettyPrint (std::ostream &out=std::cout) const
virtual void readFrom (std::istream &in=std::cin)
virtual ObjectRef clone ()
virtual std::string className () const

Static Public Member Functions

static int addFactory (const std::string &factoryName, _NodeFactory *const factory)
static int addXPM (const std::string &nodeName, char **XPMData)
static char ** getXPM (const std::string &nodeName)
static _NodeFactory * getFactoryNamed (const std::string &name)
static std::map< std::string,
_NodeFactory * > & 
factoryDictionary ()
static std::vector< std::string > & nodeInfo ()
static std::map< std::string,
char ** > & 
XPMDictionary ()
static int addNodeInfo (const std::string &info)
static ObjectRef newObject (const std::string &objType)
static int addObjectType (const std::string &objType, _ObjectFactory *factory)
static std::map< std::string,
_ObjectFactory * > & 
ObjectFactoryDictionary ()
static TypeMap< _ObjectFactory * > & TypeidDictionary ()

Protected Member Functions

virtual void connectToNode (unsigned int in, Node *inputNode, unsigned int out)
virtual std::vector< NodeInput > & getInputs ()
virtual int translateInput (std::string inputName)
virtual int translateOutput (std::string inputName)
virtual void rt_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void construct_assert (bool cond, std::string message="", char *_file="unknown", int _line=0)
virtual void throw_error (bool send_ptr, std::string message, char *_file, int _line)

Protected Attributes

int processCount
std::vector< OutputCacheInfo > outputs
std::vector< InputCacheInfo > inputsCache
bool inOrder
std::string name
std::vector< NodeInput > inputs
std::vector< std::string > outputNames
ParameterSet parameters
UINode * uinode
AtomicCounter ref_count

Private Member Functions

void ParseFSMElement (xmlNodePtr node)
void ParseInputElement (xmlNodePtr node)
void ParseOutputElement (xmlNodePtr node)
void ParseStartStateElement (xmlNodePtr node)
void ParseState (xmlNodePtr node)
FSMAction ParseStateElement (xmlNodePtr node)
FSMAction ParseSetOutputElement (xmlNodePtr node)
void ParseTransition (xmlNodePtr node)
String ParseTransitionElement (xmlNodePtr node)
String ParseOperatorElement (xmlNodePtr node)
String ParseCondition (xmlNodePtr node)
String ParseConditionElement (xmlNodePtr node)
String ParseConditionOperator (xmlNodePtr node)
bool CheckType (xmlChar *type)
String ConvertOperator (xmlChar *type)
void GenerateNodeCode ()
const char * GetAllocatorType (String type)

Private Attributes

int outputID
String m_FSMName
String m_filename
list< FSMInputm_inputs
list< FSMOutputm_outputs
String m_StartState
list< FSMStatem_states
list< FSMTransitionm_transitions


friend std::ostream & operator<< (std::ostream &out, const Object &obj)

Constructor & Destructor Documentation

RobotFlow::FSMGenerator::FSMGenerator string  nodeName,
ParameterSet  params

Member Function Documentation

void RobotFlow::FSMGenerator::calculate int  output_id,
int  count,
Buffer out
[inline, virtual]

Implements FD::BufferedNode.

bool RobotFlow::FSMGenerator::CheckType xmlChar *  type  )  [inline, private]

String RobotFlow::FSMGenerator::ConvertOperator xmlChar *  type  )  [inline, private]

void RobotFlow::FSMGenerator::GenerateNodeCode  )  [inline, private]

const char* RobotFlow::FSMGenerator::GetAllocatorType String  type  )  [inline, private]

String RobotFlow::FSMGenerator::ParseCondition xmlNodePtr  node  )  [inline, private]

String RobotFlow::FSMGenerator::ParseConditionElement xmlNodePtr  node  )  [inline, private]

String RobotFlow::FSMGenerator::ParseConditionOperator xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseFSMElement xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseInputElement xmlNodePtr  node  )  [inline, private]

String RobotFlow::FSMGenerator::ParseOperatorElement xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseOutputElement xmlNodePtr  node  )  [inline, private]

FSMAction RobotFlow::FSMGenerator::ParseSetOutputElement xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseStartStateElement xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseState xmlNodePtr  node  )  [inline, private]

FSMAction RobotFlow::FSMGenerator::ParseStateElement xmlNodePtr  node  )  [inline, private]

void RobotFlow::FSMGenerator::ParseTransition xmlNodePtr  node  )  [inline, private]

String RobotFlow::FSMGenerator::ParseTransitionElement xmlNodePtr  node  )  [inline, private]

Field Documentation

String RobotFlow::FSMGenerator::m_filename [private]

String RobotFlow::FSMGenerator::m_FSMName [private]

list<FSMInput> RobotFlow::FSMGenerator::m_inputs [private]

list<FSMOutput> RobotFlow::FSMGenerator::m_outputs [private]

String RobotFlow::FSMGenerator::m_StartState [private]

list<FSMState> RobotFlow::FSMGenerator::m_states [private]

list<FSMTransition> RobotFlow::FSMGenerator::m_transitions [private]

int RobotFlow::FSMGenerator::outputID [private]

The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:36:28 2005 for RobotFlow by  doxygen 1.4.4