>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::ActionBehavior Class Reference

#include <XabslAction.h>

Inheritance diagram for xabsl::ActionBehavior:

Inheritance graph
[legend]
Collaboration diagram for xabsl::ActionBehavior:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents an action execution.

This is either a subsequent option or basic behavior to be executed.

Author:
Max Risler

Definition at line 130 of file XabslAction.h.


Public Member Functions

 ActionBehavior (const unsigned &time)
 Constructor.

 ~ActionBehavior ()
 Destructor.

virtual const BehaviorgetBehavior () const=0
 The option or basic behavior that is executed.

virtual BehaviorgetBehavior ()=0
 Returns a pointer to the option or basic behavior to be executed, or 0 if an output symbol is set.

virtual void execute ()
 Execute the behavior.


Public Attributes

ParameterAssignmentparameters
 Parameters of the option or basic behavior that is executed.


Constructor & Destructor Documentation

xabsl::ActionBehavior::ActionBehavior const unsigned &  time  )  [inline]
 

Constructor.

Parameters:
time The system time in ms.

Definition at line 137 of file XabslAction.h.

References parameters.

xabsl::ActionBehavior::~ActionBehavior  ) 
 

Destructor.

Definition at line 163 of file XabslAction.cpp.

References parameters.


Member Function Documentation

virtual const Behavior* xabsl::ActionBehavior::getBehavior  )  const [pure virtual]
 

The option or basic behavior that is executed.

Reimplemented from xabsl::Action.

Implemented in xabsl::ActionBasicBehavior, and xabsl::ActionOption.

Referenced by xabsl::Engine::checkForLoops(), execute(), and xabsl::Action::getBehavior().

virtual Behavior* xabsl::ActionBehavior::getBehavior  )  [pure virtual]
 

Returns a pointer to the option or basic behavior to be executed, or 0 if an output symbol is set.

Reimplemented from xabsl::Action.

Implemented in xabsl::ActionBasicBehavior, and xabsl::ActionOption.

void xabsl::ActionBehavior::execute  )  [virtual]
 

Execute the behavior.

Implements xabsl::Action.

Definition at line 187 of file XabslAction.cpp.

References xabsl::Behavior::execute(), getBehavior(), xabsl::Behavior::isActive, parameters, xabsl::Behavior::parametersChanged(), xabsl::ParameterAssignment::set(), xabsl::Behavior::timeOfExecution, xabsl::Behavior::timeWhenActivated, and xabsl::Behavior::wasActive.

Here is the call graph for this function:


Member Data Documentation

ParameterAssignment* xabsl::ActionBehavior::parameters
 

Parameters of the option or basic behavior that is executed.

Definition at line 148 of file XabslAction.h.

Referenced by ActionBehavior(), xabsl::Action::create(), execute(), xabsl::Action::getParameters(), and ~ActionBehavior().


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

Up | Main Page | Generated at Wed Aug 19 17:32:29 2009.