>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::Behavior Class Reference

#include <XabslBehavior.h>

Inheritance diagram for xabsl::Behavior:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Parent class for Option and BasicBehavior.

Author:
Max Risler

Definition at line 25 of file XabslBehavior.h.


Public Member Functions

 Behavior (const char *name)
 Constructor.

virtual ~Behavior ()
 Destructor.

virtual void execute ()=0
 executes the behavior

virtual void parametersChanged ()
 Notify the software environment about a parameter change.


Public Attributes

bool isActive
 the behavior is activated in the current path through the option graph

bool wasActive
 the behavior was activated in the last path trough the option graph

unsigned timeOfExecution
 the time how long the option is already active

unsigned timeWhenActivated
 The time, when the option was activated.

Parametersparameters
 The parameters of the behavior.


Constructor & Destructor Documentation

xabsl::Behavior::Behavior const char *  name  )  [inline]
 

Constructor.

Parameters:
name The name of the behavior. For debugging purposes.

Definition at line 32 of file XabslBehavior.h.

References isActive, timeOfExecution, timeWhenActivated, and wasActive.

virtual xabsl::Behavior::~Behavior  )  [inline, virtual]
 

Destructor.

Definition at line 44 of file XabslBehavior.h.


Member Function Documentation

virtual void xabsl::Behavior::execute  )  [pure virtual]
 

executes the behavior

Implemented in xabsl::Option.

Referenced by xabsl::ActionBehavior::execute().

virtual void xabsl::Behavior::parametersChanged  )  [inline, virtual]
 

Notify the software environment about a parameter change.

Definition at line 67 of file XabslBehavior.h.

Referenced by xabsl::ActionBehavior::execute().


Member Data Documentation

bool xabsl::Behavior::isActive
 

the behavior is activated in the current path through the option graph

Definition at line 47 of file XabslBehavior.h.

Referenced by Behavior(), and xabsl::ActionBehavior::execute().

bool xabsl::Behavior::wasActive
 

the behavior was activated in the last path trough the option graph

Definition at line 50 of file XabslBehavior.h.

Referenced by Behavior(), and xabsl::ActionBehavior::execute().

unsigned xabsl::Behavior::timeOfExecution
 

the time how long the option is already active

Definition at line 58 of file XabslBehavior.h.

Referenced by Behavior(), xabsl::DecimalExpression::create(), and xabsl::ActionBehavior::execute().

unsigned xabsl::Behavior::timeWhenActivated
 

The time, when the option was activated.

Definition at line 61 of file XabslBehavior.h.

Referenced by Behavior(), and xabsl::ActionBehavior::execute().

Parameters* xabsl::Behavior::parameters
 

The parameters of the behavior.

Definition at line 64 of file XabslBehavior.h.

Referenced by xabsl::BooleanOptionParameterRef::BooleanOptionParameterRef(), xabsl::Action::create(), xabsl::DecimalOptionParameterRef::DecimalOptionParameterRef(), xabsl::EnumeratedOptionParameterRef::EnumeratedOptionParameterRef(), and xabsl::Engine::registerBasicBehavior().


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

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