Qualia  0.2
Public Member Functions | Public Attributes | List of all members
BehaviorTreeAgent Class Reference

#include <BehaviorTreeAgent.h>

Inheritance diagram for BehaviorTreeAgent:
Inheritance graph
[legend]
Collaboration diagram for BehaviorTreeAgent:
Collaboration graph
[legend]

Public Member Functions

 BehaviorTreeAgent (ActionProperties *properties, BehaviorTree::BehaviorTreeNode *root)
 
virtual ~BehaviorTreeAgent ()
 
virtual void init ()
 Initializes the agent. More...
 
virtual Actionstart (const Observation *observation)
 Chooses the first action in the episode. More...
 
virtual Actionstep (const Observation *observation)
 Performs an episode step. More...
 
const ObservationgetCurrentObservation () const
 Can be used by leaf nodes to access the current observation under scrutiny. More...
 
ActiongetCurrentAction ()
 Can be used by leaf nodes to access the current observation under scrutiny. More...
 
- Public Member Functions inherited from Agent
virtual ~Agent ()
 
virtual void end (const Observation *observation)
 Performs the last episode step. More...
 
virtual void save (XFile *file)
 Saves the agent. More...
 
virtual void load (XFile *file)
 Loads an agent. More...
 

Public Attributes

Action currentAction
 
const ObservationcurrentObservation
 
BehaviorTree::BehaviorTreeNoderoot
 

Constructor & Destructor Documentation

BehaviorTreeAgent::BehaviorTreeAgent ( ActionProperties properties,
BehaviorTree::BehaviorTreeNode root 
)
BehaviorTreeAgent::~BehaviorTreeAgent ( )
virtual

Member Function Documentation

Action& BehaviorTreeAgent::getCurrentAction ( )
inline

Can be used by leaf nodes to access the current observation under scrutiny.

const Observation* BehaviorTreeAgent::getCurrentObservation ( ) const
inline

Can be used by leaf nodes to access the current observation under scrutiny.

void BehaviorTreeAgent::init ( )
virtual

Initializes the agent.

Reimplemented from Agent.

Action * BehaviorTreeAgent::start ( const Observation observation)
virtual

Chooses the first action in the episode.

Implements Agent.

Action * BehaviorTreeAgent::step ( const Observation observation)
virtual

Performs an episode step.

Implements Agent.

Member Data Documentation

Action BehaviorTreeAgent::currentAction
const Observation* BehaviorTreeAgent::currentObservation
BehaviorTree::BehaviorTreeNode* BehaviorTreeAgent::root

The documentation for this class was generated from the following files: