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

RS::SkillWithArguments Class Reference

This abstract class represent skill that uses arguments. More...

Inheritance diagram for RS::SkillWithArguments:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SkillWithArguments ()
 Default constructor, it is ok since the class is abstract all subclasses should make sure to get default values for the arguments.

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

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

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 std::vector< Float > &arguments)
 This method is used to first set the arguments 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.


Detailed Description

This abstract class represent skill that uses arguments.

Unit:
Framework
Revision
1.1
Author
frehe
Date
2000/09/13 03:10:38

Definition at line 66 of file SkillWithArguments.h.


Member Function Documentation

virtual void RS::SkillWithArguments::setArguments const std::vector< Float > &    arguments throw (TooFewArgumentsException) [pure virtual]
 

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

This method must be overridden by subclasses. It should transform the generic vector of floats to the actual arguments. It will throw TooFewArgumentsException if not enough arguments are given.

Implemented in RS::SkillWithCommand, RS::SkillWithDirection, RS::SkillWithDirectionAndCommand, RS::SkillWithPosition, RS::SkillWithPositionAndCommand, RS::SkillWithSpeed, and RS::SkillWithVector.

Referenced by generatePlan().

virtual Plan RS::SkillWithArguments::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::Skill.

Implemented in RS::SkillWithCommand, RS::SkillWithDirection, RS::SkillWithDirectionAndCommand, RS::SkillWithPosition, RS::SkillWithPositionAndCommand, RS::SkillWithSpeed, RS::SkillWithVector, RS::AccelerateBallToVelocity, RS::DashToPoint, RS::KickBallCloseToBody, RS::TurnBackToPoint, RS::TurnBodyToAbsoluteDirection, RS::TurnBodyToPoint, RS::TurnNeckToAbsoluteDirection, RS::TurnNeckToBall, and RS::TurnNeckToPoint.

Referenced by generatePlan().

Plan RS::SkillWithArguments::generatePlan const std::vector< Float > &    arguments [inline, virtual]
 

This method is used to first set the arguments 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 setArguments and generatePlan(), so it should not be overriden unless it should made unavailable.

Definition at line 51 of file SkillWithArguments.icc.

References generatePlan(), and setArguments().

virtual FuzzyBool RS::SkillWithArguments::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::Skill.

Implemented in RS::SkillWithCommand, RS::SkillWithDirection, RS::SkillWithDirectionAndCommand, RS::SkillWithPosition, RS::SkillWithPositionAndCommand, RS::SkillWithSpeed, RS::SkillWithVector, RS::AccelerateBallToVelocity, RS::DashToPoint, RS::KickBallCloseToBody, RS::TurnBackToPoint, RS::TurnBodyToAbsoluteDirection, RS::TurnBodyToPoint, RS::TurnNeckToAbsoluteDirection, RS::TurnNeckToBall, and RS::TurnNeckToPoint.

virtual FuzzyBool RS::SkillWithArguments::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::Skill.

Implemented in RS::SkillWithCommand, RS::SkillWithDirection, RS::SkillWithDirectionAndCommand, RS::SkillWithPosition, RS::SkillWithPositionAndCommand, RS::SkillWithSpeed, RS::SkillWithVector, RS::AccelerateBallToVelocity, RS::DashToPoint, RS::KickBallCloseToBody, RS::TurnBackToPoint, RS::TurnBodyToAbsoluteDirection, RS::TurnBodyToPoint, RS::TurnNeckToAbsoluteDirection, RS::TurnNeckToBall, and RS::TurnNeckToPoint.


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