Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Xabsl2BasicBehavior Class Reference

The base class for basic behaviors that are used by the XabslEngine. More...

#include <Xabsl2BasicBehavior.h>

Inheritance diagram for Xabsl2BasicBehavior:

Inheritance graph
[legend]
Collaboration diagram for Xabsl2BasicBehavior:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Xabsl2BasicBehavior (const char *name, Xabsl2ErrorHandler &errorHandler)
 Constructor.

virtual void execute ()=0
 executes the basic behavior

void reset ()
 sets all parameter values to 0

void registerParameter (const char *name, double &parameter)
 Registeres a reference to a parameter at the parameters array.


Public Attributes

Xabsl2Array< double & > parameters
 The parameters of the basic behavior.

bool basicBehaviorWasActiveDuringLastExecutionOfEngine
 Determines if the basic behavior was active during the last execution of the engine.


Protected Attributes

Xabsl2ErrorHandlererrorHandler
 Is invoked when a errors occur.


Detailed Description

The base class for basic behaviors that are used by the XabslEngine.

Author:
Matthias Jüngel

Martin Lötzsch

Definition at line 22 of file Xabsl2BasicBehavior.h.


Constructor & Destructor Documentation

Xabsl2BasicBehavior::Xabsl2BasicBehavior const char *  name,
Xabsl2ErrorHandler errorHandler
[inline]
 

Constructor.

Parameters:
name The name of the basic behavior
errorHandler A reference

Definition at line 30 of file Xabsl2BasicBehavior.h.

References basicBehaviorWasActiveDuringLastExecutionOfEngine.


Member Function Documentation

virtual void Xabsl2BasicBehavior::execute  )  [pure virtual]
 

executes the basic behavior

Implemented in BasicBehaviorShutdown, BasicBehaviorDoNothing, BasicBehaviorWalk, BasicBehaviorSpecialAction, BasicBehaviorStand, BasicBehaviorPlayDead, GT2004BasicBehaviorMeasureGT2004Parameters, GT2004BasicBehaviorMeasureGT2004ParametersBlind, GT2004BasicBehaviorEvolveOmniParameters, GT2004BasicBehaviorSendCurrentGT2004ParametersAndChooseNext, GT2004BasicBehaviorNextGT2004ParametersToBeMeasured, GT2004PotentialFieldBasicBehavior, GT2004PotentialFieldBasicBehaviorGoToPose, GT2004PotentialFieldBasicBehaviorSupport, GT2004PotentialFieldBasicBehaviorOffensiveSupport, GT2004BasicBehaviorGoToBall, GT2004BasicBehaviorGoToBallWithoutTurning, GT2004BasicBehaviorGoToPoint, GT2004BasicBehaviorTurnAroundPoint, GT2004BasicBehaviorGoaliePosition, GT2004BasicBehaviorGoaliePositionReturn, GT2004BasicBehaviorGoForwardToPoint, GT2004BasicBehaviorGoToPointAndAvoidObstacles, GT2004BasicBehaviorMoveTheBridge, GT2004BasicBehaviorDogAsJoystick, GT2004HeadControlBasicBehavior, and GT2004BasicBehaviorDirectedScanForLandmarks.

Referenced by Xabsl2Engine::executeSelectedBasicBehavior().

void Xabsl2BasicBehavior::reset void   )  [inline]
 

sets all parameter values to 0

Definition at line 41 of file Xabsl2BasicBehavior.h.

References Xabsl2Array< double & >::getSize().

Here is the call graph for this function:

void Xabsl2BasicBehavior::registerParameter const char *  name,
double &  parameter
[inline]
 

Registeres a reference to a parameter at the parameters array.

Parameters:
name The name of the parameter
parameter The reference to a parameter of the basic behavior

Definition at line 55 of file Xabsl2BasicBehavior.h.

References Xabsl2Array< double & >::append(), Xabsl2ErrorHandler::error(), Xabsl2Array< double & >::exists(), Xabsl2ErrorHandler::message(), and XABSL2_DEBUG_INIT.

Referenced by BasicBehaviorSpecialAction::BasicBehaviorSpecialAction(), BasicBehaviorWalk::BasicBehaviorWalk(), GT2004BasicBehaviorEvolveOmniParameters::GT2004BasicBehaviorEvolveOmniParameters(), GT2004BasicBehaviorGoaliePosition::GT2004BasicBehaviorGoaliePosition(), GT2004BasicBehaviorGoaliePositionReturn::GT2004BasicBehaviorGoaliePositionReturn(), GT2004BasicBehaviorGoForwardToPoint::GT2004BasicBehaviorGoForwardToPoint(), GT2004BasicBehaviorGoToBall::GT2004BasicBehaviorGoToBall(), GT2004BasicBehaviorGoToBallWithoutTurning::GT2004BasicBehaviorGoToBallWithoutTurning(), GT2004BasicBehaviorGoToPoint::GT2004BasicBehaviorGoToPoint(), GT2004BasicBehaviorGoToPointAndAvoidObstacles::GT2004BasicBehaviorGoToPointAndAvoidObstacles(), GT2004BasicBehaviorMoveTheBridge::GT2004BasicBehaviorMoveTheBridge(), GT2004BasicBehaviorTurnAroundPoint::GT2004BasicBehaviorTurnAroundPoint(), GT2004PotentialFieldBasicBehaviorGoToPose::GT2004PotentialFieldBasicBehaviorGoToPose(), GT2004PotentialFieldBasicBehaviorOffensiveSupport::GT2004PotentialFieldBasicBehaviorOffensiveSupport(), and GT2004PotentialFieldBasicBehaviorSupport::GT2004PotentialFieldBasicBehaviorSupport().

Here is the call graph for this function:


Member Data Documentation

Xabsl2Array<double&> Xabsl2BasicBehavior::parameters
 

The parameters of the basic behavior.

Definition at line 45 of file Xabsl2BasicBehavior.h.

Referenced by Xabsl2State::create(), GTXabsl2EngineExecutor::sendDebugMessage(), Xabsl2Engine::setBasicBehaviorParameter(), and Xabsl2State::setOutputSymbols().

bool Xabsl2BasicBehavior::basicBehaviorWasActiveDuringLastExecutionOfEngine
 

Determines if the basic behavior was active during the last execution of the engine.

Definition at line 48 of file Xabsl2BasicBehavior.h.

Referenced by Xabsl2Engine::executeSelectedBasicBehavior(), and Xabsl2BasicBehavior().

Xabsl2ErrorHandler& Xabsl2BasicBehavior::errorHandler [protected]
 

Is invoked when a errors occur.

Definition at line 70 of file Xabsl2BasicBehavior.h.


The documentation for this class was generated from the following file:
Generated on Thu Sep 23 20:12:17 2004 for GT2004 by doxygen 1.3.6