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

RS::SkillWithPosition Class Reference

This abstract class represent skill that uses a position as an argument. More...

Inheritance diagram for RS::SkillWithPosition:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SkillWithPosition (const Point &pos)
 Constructor taking the default argument for the position used as an argument in the skill.

virtual ~SkillWithPosition ()
 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 setPosition (const Point &pos)
 Used to set the skill's position argument to pos.

virtual Point getPosition () const
 Return the skill's position 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 Point &pos)
 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

Point position
 The position argument.


Detailed Description

This abstract class represent skill that uses a position as an argument.

Unit:
Framework
Revision
1.2
Author
frehe
Date
2000/09/13 03:10:39

Definition at line 70 of file SkillWithPosition.h.


Member Function Documentation

void RS::SkillWithPosition::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 X-coordinate and the second value as the Y-coordinate.

Implements RS::SkillWithArguments.

Reimplemented in RS::SkillWithPositionAndCommand.

Definition at line 55 of file SkillWithPosition.icc.

References RS_THROW.

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

Implemented in RS::SkillWithPositionAndCommand, RS::DashToPoint, RS::TurnBackToPoint, RS::TurnBodyToPoint, and RS::TurnNeckToPoint.

Referenced by generatePlan().

Plan RS::SkillWithPosition::generatePlan const Point   pos [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 setPosition and generatePlan(), so it should not be overriden unless it should made unavailable.

Definition at line 79 of file SkillWithPosition.icc.

References generatePlan(), and setPosition().

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

Implemented in RS::SkillWithPositionAndCommand, RS::DashToPoint, RS::TurnBackToPoint, RS::TurnBodyToPoint, and RS::TurnNeckToPoint.

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

Implemented in RS::SkillWithPositionAndCommand, RS::DashToPoint, RS::TurnBackToPoint, RS::TurnBodyToPoint, and RS::TurnNeckToPoint.


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