Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PostMachine.h

Go to the documentation of this file.
00001 #ifndef _Included_PostMachine_h_
00002 #define _Included_PostMachine_h_
00003 
00004 #include "Behaviors/StateNode.h"
00005 
00006 //! This node posts a completion event; it is used to construct dummy behaviors
00007 class PostStateCompletion : public StateNode {
00008 public:
00009   PostStateCompletion(const std::string &name="PostStateCompletion") : StateNode(name) {}
00010   virtual void doStart() { postStateCompletion(); }
00011 };
00012 
00013 //! This node can be included in an embedded state machine to make its parent post a completion event
00014 class PostMachineCompletion : public StateNode {
00015 public:
00016   PostMachineCompletion(const std::string &name="PostMachineCompletion") : StateNode(name) {}
00017   virtual void doStart() { postParentCompletion(); }
00018 };
00019 
00020 //! This node can be included in an embedded state machine to make its parent post a success event
00021 class PostMachineSuccess : public StateNode {
00022 public:
00023   PostMachineSuccess(const std::string &name="PostMachineSuccess") : StateNode(name) {}
00024   virtual void doStart() { postParentSuccess(); }
00025 };
00026 
00027 //! This node can be included in an embedded state machine to make its parent post a failure event
00028 class PostMachineFailure : public StateNode {
00029 public:
00030   PostMachineFailure(const std::string &name="PostMachineFailure") : StateNode(name) {}
00031   virtual void doStart() { postParentFailure(); }
00032 };
00033 
00034 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:49 2016 by Doxygen 1.6.3