RAIN.GOB.GOBTree.GOBGoalNode Class Reference

GOBGoalNode represents high level goals in Goal Oriented Behavior (GOB). These goals may not be tied directly to actions (i.e., not 1 to 1) but instead represent preferrable world states. GOBGoals have insistence functions that produce a "discomfort level", which can be translated to the urgency to which the goal requires satisfaction. GOB operates by choosing choosing actions which are predicted to do the best job of reducing overall discomfort/urgency. More...

Inheritance diagram for RAIN.GOB.GOBTree.GOBGoalNode:
RAIN.BehaviorTrees.BTNode RAIN.Action.Action

List of all members.

Public Member Functions

 GOBGoalNode (string nodeName)
 Standard constructor.
override void AddChild (BTNode child)
 AddChild will add a child node and then re-sort the child list.
override void RemoveChild (string actionName)
 RemoveChild will remove the named child node. Children are not re-sorted.
float UpdateInsistence (float deltaTime, PersonalityContext personalityContext)
 UpdateInsistence causes the overall insistence value of this GOBGoal to be computed.
float PredictInsistence (float deltaTime, PersonalityContext personalityContext)
 PredictInsistence calculates insistence but does not set the result to the current insistence value.

Public Attributes

const string NODETYPE = "goal"
float insistence = 0f
 The current insistence measure.

Detailed Description

GOBGoalNode represents high level goals in Goal Oriented Behavior (GOB). These goals may not be tied directly to actions (i.e., not 1 to 1) but instead represent preferrable world states. GOBGoals have insistence functions that produce a "discomfort level", which can be translated to the urgency to which the goal requires satisfaction. GOB operates by choosing choosing actions which are predicted to do the best job of reducing overall discomfort/urgency.


Constructor & Destructor Documentation

RAIN.GOB.GOBTree.GOBGoalNode.GOBGoalNode ( string  nodeName)

Standard constructor.

Parameters:
nodeNameName of the tree node

Member Function Documentation

override void RAIN.GOB.GOBTree.GOBGoalNode.AddChild ( BTNode  child) [virtual]

AddChild will add a child node and then re-sort the child list.

Parameters:
childThe behavior tree node to add

Reimplemented from RAIN.BehaviorTrees.BTNode.

float RAIN.GOB.GOBTree.GOBGoalNode.PredictInsistence ( float  deltaTime,
PersonalityContext  personalityContext 
)

PredictInsistence calculates insistence but does not set the result to the current insistence value.

Parameters:
deltaTimetimestep to use
Returns:
Returns a float value indicating urgency/insistence of this GOBGoal
override void RAIN.GOB.GOBTree.GOBGoalNode.RemoveChild ( string  actionName) [virtual]

RemoveChild will remove the named child node. Children are not re-sorted.

Parameters:
actionName

Reimplemented from RAIN.BehaviorTrees.BTNode.

float RAIN.GOB.GOBTree.GOBGoalNode.UpdateInsistence ( float  deltaTime,
PersonalityContext  personalityContext 
)

UpdateInsistence causes the overall insistence value of this GOBGoal to be computed.

Parameters:
deltaTimetimestep to use
Returns:
Returns a float value indicating urgency/insistence of this GOBGoal

Member Data Documentation

The current insistence measure.