Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

oxygen::Perceptor Class Reference

#include <perceptor.h>

Inheritance diagram for oxygen::Perceptor:

Inheritance graph
[legend]
Collaboration diagram for oxygen::Perceptor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool Percept (boost::shared_ptr< PredicateList > predList)=0
void SetPredicateName (const std::string &my_name)
 set / change predicate name (for example for debugging purposes)

Protected Attributes

std::string mPredicateName
 the predicate name

Detailed Description

Definition at line 31 of file perceptor.h.


Member Function Documentation

virtual bool oxygen::Perceptor::Percept boost::shared_ptr< PredicateList predList  )  [pure virtual]
 

This is called by agents to trigger the percept event implemented by this perceptor. The perceptor can return data through the PredicateList which is passed as a parameter.

Returns:
true, if valid data is available and false otherwise.

Implemented in CollisionPerceptor, PerfectVisionPerceptor, AgentStatePerceptor, GameStatePerceptor, HearPerceptor, RestrictedVisionPerceptor, VisionPerceptor, Hinge2Perceptor, HingePerceptor, TimePerceptor, and UniversalJointPerceptor.

void Perceptor::SetPredicateName const std::string &  my_name  ) 
 

set / change predicate name (for example for debugging purposes)

Definition at line 27 of file perceptor.cpp.

References mPredicateName.

Referenced by RestrictedVisionPerceptor::RestrictedVisionPerceptor(), and VisionPerceptor::VisionPerceptor().


Member Data Documentation

std::string oxygen::Perceptor::mPredicateName [protected]
 

the predicate name

Definition at line 46 of file perceptor.h.

Referenced by VisionPerceptor::DynamicAxisPercept(), RestrictedVisionPerceptor::DynamicAxisPercept(), SetPredicateName(), VisionPerceptor::StaticAxisPercept(), and RestrictedVisionPerceptor::StaticAxisPercept().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:44:15 2006 for rcssserver3d by  doxygen 1.4.4