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

RS::SkillWithDirectionAndCommand Class Reference

This abstract class represent skill that uses a direction and a command as arguments. More...

Inheritance diagram for RS::SkillWithDirectionAndCommand:

Inheritance graph
[legend]
Collaboration diagram for RS::SkillWithDirectionAndCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SkillWithDirectionAndCommand (const AngleDeg &dir, ServerCommand *cmd)
 Constructor taking the default argument for the direction and the command used as arguments to the skill.

virtual ~SkillWithDirectionAndCommand ()
 Destructor cleaning up after the skill.

virtual void setArguments (const std::vector< Float > &arguments) throw (TooFewArgumentsException)
 Used to set the skills's arguments in a generic way.

virtual void setCommand (ServerCommand *cmd)
 Used to set the skill's command argument to cmd.

virtual ServerCommandgetCommand () const
 Return the skill's command argument.

virtual Plan generatePlan ()=0
 This method is used to generate a plan for how the goal of the skill should be obtained by the agent.

virtual Plan generatePlan (const AngleDeg &dir, ServerCommand *cmd)
 This method is used to first set the argument of the skill and then generate a plan for how the goal of the skill should be obtained by the agent.

virtual FuzzyBool persistent ()=0
 This method should return a FuzzyBool telling the caller if the skill wants to be called again.

virtual FuzzyBool applicable ()=0
 This method should implement the precondition specified in the description of the skill.


Protected Attributes

ServerCommandcommand
 The command argument.


Detailed Description

This abstract class represent skill that uses a direction and a command as arguments.

Unit:
Framework
Revision
1.1
Author
frehe
Date
2004/08/26 17:09:40

Definition at line 66 of file SkillWithDirectionAndCommand.h.


Member Function Documentation

void RS::SkillWithDirectionAndCommand::setArguments const std::vector< Float > &    arguments throw (TooFewArgumentsException) [inline, virtual]
 

Used to set the skills's arguments in a generic way.

The first value in the vector will be interpreted as the direction. The command can not be set through this method.

Reimplemented from RS::SkillWithDirection.

Definition at line 52 of file SkillWithDirectionAndCommand.icc.

References RS::AngleDeg, and RS_THROW.

virtual Plan RS::SkillWithDirectionAndCommand::generatePlan   [pure virtual]
 

This method is used to generate a plan for how the goal of the skill should be obtained by the agent.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithDirection.

Implemented in RS::TurnNeckToAbsoluteDirection.

Referenced by generatePlan().

Plan RS::SkillWithDirectionAndCommand::generatePlan const AngleDeg   dir,
ServerCommand   cmd
[inline, virtual]
 

This method is used to first set the argument of the skill and then generate a plan for how the goal of the skill should be obtained by the agent.

It uses the methods setDirection and generatePlan(), so it should not be overriden unless it should made unavailable.

Definition at line 81 of file SkillWithDirectionAndCommand.icc.

References generatePlan(), setCommand(), and RS::SkillWithDirection::setDirection().

virtual FuzzyBool RS::SkillWithDirectionAndCommand::persistent   [pure virtual]
 

This method should return a FuzzyBool telling the caller if the skill wants to be called again.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithDirection.

Implemented in RS::TurnNeckToAbsoluteDirection.

virtual FuzzyBool RS::SkillWithDirectionAndCommand::applicable   [pure virtual]
 

This method should implement the precondition specified in the description of the skill.

Abstract since no concrete instances of this class should be created.

Implements RS::SkillWithDirection.

Implemented in RS::TurnNeckToAbsoluteDirection.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:26:50 2011 for RoboSoc by doxygen1.3-rc3