WSF
WsfBehaviorTreeSelectorNode Class Reference

#include <WsfBehaviorTreeNode.hpp>

Inheritance diagram for WsfBehaviorTreeSelectorNode:
Collaboration diagram for WsfBehaviorTreeSelectorNode:

Public Member Functions

 WsfBehaviorTreeSelectorNode (WsfScenario &aScenario)
WsfObjectClone () const override
bool LocalExecute (double aSimTime) override
Public Member Functions inherited from WsfBehaviorTreeNode
 WsfBehaviorTreeNode (const WsfScenario &aScenario)
 WsfBehaviorTreeNode (const WsfBehaviorTreeNode &aSrc)
WsfBehaviorTreeNodeoperator= (const WsfBehaviorTreeNode &)=delete
 ~WsfBehaviorTreeNode () override
bool ProcessInput (UtInput &aInput) override
virtual void RegisterInput (UtInput &aInput)
bool PreconditionsMet ()
double PreconditionValue ()
void AddChild (WsfBehaviorTreeNode *aNodePtr)
std::vector< WsfBehaviorTreeNode * > & Children ()
int ChildCount () const
WsfBehaviorTreeNodeChildEntry (int aIndex)
void SetParent (WsfBehaviorTreeNode *aNodePtr)
WsfBehaviorTreeNodeParent ()
virtual bool Initialize (double aSimTime, WsfScriptContext *aParentContext)
WsfScriptContextGetScriptContext ()
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)
WsfBehaviorTreeOwningTree ()
virtual void SetTree (WsfBehaviorTree *aTreePtr)
WsfScriptProcessorOwningProcessor ()
WsfPlatformOwningPlatform ()
WsfSimulationGetSimulation ()
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)
WsfBehaviorTreeNodeFindNode (const std::string &aNodeName)
void FindLastExecuted (std::vector< WsfBehaviorTreeNode * > &aLastExecuted)
const char * GetScriptClassName () const override
UtScriptContext * GetScriptAccessibleContext () const override
const WsfScenarioGetScenario () 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 TypeListGetTypeList () const
bool IsA_TypeOf (WsfStringId aType) const
WsfObjectoperator= (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)

Additional Inherited Members

Public Types inherited from WsfBehaviorTreeNode
enum  RunType { Repeat , ForTime , UntilDone }
enum  SelectType { Continous , Finite }
Public Types inherited from WsfObject
typedef std::vector< WsfStringIdTypeList
 The list of types returned by GetTypeList.
Static Public Member Functions inherited from WsfBehaviorTreeNode
static unsigned int GetUniqueNodeId (void)
static void Reset ()
 WsfObject (const WsfObject &aSrc)
 Copy constructor (for Clone()).
Protected Attributes inherited from WsfBehaviorTreeNode
const WsfScenariomScenario
bool mInitialized
bool mTurnedOn
WsfBehaviorTreemParentTreePtr
WsfBehaviorTreeNodemParentPtr
std::vector< WsfBehaviorTreeNode * > mChildren
WsfScriptContextmContextPtr
UtScript * mPreconditionScriptPtr
UtScript * mNewExecuteScriptPtr
UtScript * mNewFailScriptPtr
std::string mFailureReason
double mFailureTime
bool mLastExecute
unsigned int mId
std::string mFullPathFileName
time_t mFileLastModTime
RunType mRunType
int mRepeats
double mRunDuration
WsfBehaviorTreeNodemLastNodeSelectedPtr
int mRepeatsLeft
double mRunStartTime
SelectType mSelectType
int mSelectLimit
int mSelectCount
WsfScriptStateMachinemFiniteStateMachinePtr
int mStateIndex
WsfScriptMessageHandlermMessageHandlerPtr
bool mDebug

Constructor & Destructor Documentation

◆ WsfBehaviorTreeSelectorNode()

WsfBehaviorTreeSelectorNode::WsfBehaviorTreeSelectorNode ( WsfScenario & aScenario)

Member Function Documentation

◆ Clone()

WsfObject * WsfBehaviorTreeSelectorNode::Clone ( ) const
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::WsfBehaviorTreeSelectorNode, and WsfObject::WsfObject().

◆ LocalExecute()


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved