|
WSF
|
#include <WsfBehaviorTreeNode.hpp>


Public Member Functions | |
| WsfBehaviorTreeLeafNode (WsfScenario &aScenario, bool aRegisterPlatformVariable=true, bool aRegisterProcessorVariable=true) | |
| WsfBehaviorTreeLeafNode (const WsfBehaviorTreeLeafNode &aSrc) | |
| WsfBehaviorTreeLeafNode & | operator= (const WsfBehaviorTreeLeafNode &aRhs)=delete |
| ~WsfBehaviorTreeLeafNode () override=default | |
| WsfObject * | Clone () const override |
| bool | ProcessInput (UtInput &aInput) override |
| void | RegisterInput (UtInput &aInput) override |
| bool | Initialize (double aSimTime, WsfScriptContext *aParentContextPtr) override |
| bool | LocalExecute (double aSimTime) override |
| void | SetTree (WsfBehaviorTree *aTreePtr) override |
| Public Member Functions inherited from WsfBehaviorTreeNode | |
| WsfBehaviorTreeNode (const WsfScenario &aScenario) | |
| WsfBehaviorTreeNode (const WsfBehaviorTreeNode &aSrc) | |
| WsfBehaviorTreeNode & | operator= (const WsfBehaviorTreeNode &)=delete |
| ~WsfBehaviorTreeNode () override | |
| bool | ProcessInput (UtInput &aInput) override |
| bool | PreconditionsMet () |
| double | PreconditionValue () |
| void | AddChild (WsfBehaviorTreeNode *aNodePtr) |
| std::vector< WsfBehaviorTreeNode * > & | Children () |
| int | ChildCount () const |
| WsfBehaviorTreeNode * | ChildEntry (int aIndex) |
| void | SetParent (WsfBehaviorTreeNode *aNodePtr) |
| WsfBehaviorTreeNode * | Parent () |
| WsfScriptContext & | GetScriptContext () |
| bool | Execute (double aSimTime, bool aSkipCheck=false) |
| void | TurnOn () |
| void | TurnOff () |
| void | SetFailureReason (const std::string &aReason, bool aSendEvent=false) |
| std::string | FailureReason () const |
| bool | ExecutedLastRun () |
| void | SetExecutedLastRun (bool aVal) |
| void | SetExecutedLastRunRecursive (bool aVal) |
| void | SetExecutedLastRun (bool aVal, const std::string &aReason) |
| void | SetExecutedLastRunRecursive (bool aVal, const std::string &aReason) |
| WsfBehaviorTree * | OwningTree () |
| WsfScriptProcessor * | OwningProcessor () |
| WsfPlatform * | OwningPlatform () |
| WsfSimulation * | GetSimulation () |
| bool | TryRunLast (double aSimTime) |
| bool | ShouldRunNext (double aSimTime) |
| unsigned int | Id () const |
| void | LogNodeStructure (double aSimTime, bool aRecurse) |
| std::string | FilePath () const |
| time_t | FileLastModTime () const |
| void | SetFilePath (const std::string &aPath) |
| void | SetFileInfo (const std::string &aPath, time_t aModTime) |
| WsfBehaviorTreeNode * | FindNode (const std::string &aNodeName) |
| void | FindLastExecuted (std::vector< WsfBehaviorTreeNode * > &aLastExecuted) |
| const char * | GetScriptClassName () const override |
| UtScriptContext * | GetScriptAccessibleContext () const override |
| const WsfScenario & | GetScenario () const |
| virtual bool | ProcessMessage (double aSimTime, const WsfMessage &aMessage) |
| Public Member Functions inherited from WsfObject | |
| WsfObject () | |
| This is the constructor for the WsfObject class. | |
| ~WsfObject () override | |
| This is the destructor for the WsfObject class. | |
| const char * | GetScriptClassName () const override |
| const std::string & | GetType () const |
| WsfStringId | GetTypeId () const |
| Get the string ID of the 'type' of the object. | |
| void | SetType (WsfStringId aType) |
| const std::string & | GetBaseType () const |
| WsfStringId | GetBaseTypeId () const |
| const TypeList & | GetTypeList () const |
| bool | IsA_TypeOf (WsfStringId aType) const |
| WsfObject & | operator= (const WsfObject &aRhs) |
| Assignment operator. | |
| template<typename T> | |
| void | Serialize (T &aBuff) |
| For XIO (de)serialization. | |
| const std::string & | GetName () const |
| WsfStringId | GetNameId () const |
| void | SetName (WsfStringId aName) |
Protected Member Functions | |
| bool | RegisterExternVariable (const std::string &aVariableType, const std::string &aVariableName) |
| WsfObject (const WsfObject &aSrc) | |
| Copy constructor (for Clone()). | |
| WsfBehaviorTreeLeafNode::WsfBehaviorTreeLeafNode | ( | WsfScenario & | aScenario, |
| bool | aRegisterPlatformVariable = true, | ||
| bool | aRegisterProcessorVariable = true ) |
References RegisterExternVariable(), WsfObject::SetName(), WsfObject::SetType(), and WsfBehaviorTreeNode::WsfBehaviorTreeNode().
Referenced by operator=(), and WsfBehaviorTreeLeafNode().
| WsfBehaviorTreeLeafNode::WsfBehaviorTreeLeafNode | ( | const WsfBehaviorTreeLeafNode & | aSrc | ) |
|
overridedefault |
References Initialize(), LocalExecute(), RegisterExternVariable(), RegisterInput(), SetTree(), and WsfObject::WsfObject().
|
overridevirtual |
Return a copy of this object. Must be implemented by all derived types. If cloning is impossible, a WsfUncloneableException should be thrown.
Implements WsfBehaviorTreeNode.
References WsfBehaviorTreeNode::WsfBehaviorTreeLeafNode, and WsfObject::WsfObject().
|
overridevirtual |
Reimplemented from WsfBehaviorTreeNode.
References WsfBehaviorTreeNode::mChildren, WsfBehaviorTreeNode::mContextPtr, WsfBehaviorTreeNode::mFiniteStateMachinePtr, WsfBehaviorTreeNode::mMessageHandlerPtr, WsfBehaviorTreeNode::mStateIndex, ok, WsfBehaviorTreeNode::OwningPlatform(), and WsfBehaviorTreeNode::OwningProcessor().
Referenced by ~WsfBehaviorTreeLeafNode().
|
overridevirtual |
Implements WsfBehaviorTreeNode.
References WsfBehaviorTreeNode::mChildren, and WsfBehaviorTreeNode::mContextPtr.
Referenced by ~WsfBehaviorTreeLeafNode().
|
delete |
References WsfBehaviorTreeLeafNode().
|
overridevirtual |
Process input from a generic source.
Examine the current input command. If it is NOT one of the commands recognized by this class then it simply returns 'false'. If it is one of the commands recognized by this class then it processes the command and returns 'true'.
| aInput | a reference to a UtInput object. |
| UtInput::ExceptionBase | (or an object derived from it) if the command was recognized but contains some sort of error. |
Reimplemented from WsfObject.
References WsfBehaviorTreeNode::AddChild(), WsfBehaviorTreeNode::GetScenario(), WsfBehaviorTreeNode::mContextPtr, WsfBehaviorTreeNode::mParentTreePtr, WsfBehaviorTreeNode::ProcessInput(), WsfObject::SetName(), and WsfBehaviorTreeNode::WsfBehaviorTreeNode().
Referenced by WsfScriptStateMachine::State::ProcessInput().
|
protected |
References WsfBehaviorTreeNode::mContextPtr, and RegisterExternVariable().
Referenced by RegisterExternVariable(), WsfBehaviorTreeLeafNode(), and ~WsfBehaviorTreeLeafNode().
|
overridevirtual |
Reimplemented from WsfBehaviorTreeNode.
References WsfBehaviorTreeNode::SetFilePath().
Referenced by ~WsfBehaviorTreeLeafNode().
|
overridevirtual |
Reimplemented from WsfBehaviorTreeNode.
References WsfBehaviorTreeNode::mParentTreePtr.
Referenced by ~WsfBehaviorTreeLeafNode().