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

AgentStatePerceptor Class Reference

#include <agentstateperceptor.h>

Inheritance diagram for AgentStatePerceptor:

Inheritance graph
[legend]
Collaboration diagram for AgentStatePerceptor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AgentStatePerceptor ()
virtual ~AgentStatePerceptor ()
virtual bool Percept (boost::shared_ptr< oxygen::PredicateList > predList)

Protected Member Functions

virtual void OnLink ()
 sets up the reference to the AgentState
virtual void OnUnlink ()
 resets the reference to the AgentState

Protected Attributes

boost::shared_ptr< AgentStatemAgentState
 a reference to the agentstate
int mPerceptRate
 the percept percept rate is the rate SenseIntervals divided by number of percepts
int mSenses
 sense interval counter for subsequent percepts

Detailed Description

Definition at line 35 of file agentstateperceptor.h.


Constructor & Destructor Documentation

AgentStatePerceptor::AgentStatePerceptor  ) 
 

Definition at line 31 of file agentstateperceptor.cpp.

References mPerceptRate, and mSenses.

AgentStatePerceptor::~AgentStatePerceptor  )  [virtual]
 

Definition at line 37 of file agentstateperceptor.cpp.


Member Function Documentation

void AgentStatePerceptor::OnLink  )  [protected, virtual]
 

sets up the reference to the AgentState

Reimplemented from zeitgeist::Leaf.

Definition at line 99 of file agentstateperceptor.cpp.

References SoccerBase::GetAgentState(), and mAgentState.

Here is the call graph for this function:

void AgentStatePerceptor::OnUnlink  )  [protected, virtual]
 

resets the reference to the AgentState

Reimplemented from zeitgeist::Leaf.

Definition at line 105 of file agentstateperceptor.cpp.

References mAgentState.

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

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

Implements oxygen::Perceptor.

Definition at line 42 of file agentstateperceptor.cpp.

References zeitgeist::ParameterList::AddList(), zeitgeist::ParameterList::AddValue(), zeitgeist::ParameterList::Clear(), zeitgeist::Object::GetLog(), zeitgeist::Leaf::GetParent(), mAgentState, mPerceptRate, mSenses, oxygen::Predicate::name, and oxygen::Predicate::parameter.

Here is the call graph for this function:


Member Data Documentation

boost::shared_ptr<AgentState> AgentStatePerceptor::mAgentState [protected]
 

a reference to the agentstate

Definition at line 53 of file agentstateperceptor.h.

Referenced by OnLink(), OnUnlink(), and Percept().

int AgentStatePerceptor::mPerceptRate [protected]
 

the percept percept rate is the rate SenseIntervals divided by number of percepts

Definition at line 56 of file agentstateperceptor.h.

Referenced by AgentStatePerceptor(), and Percept().

int AgentStatePerceptor::mSenses [protected]
 

sense interval counter for subsequent percepts

Definition at line 59 of file agentstateperceptor.h.

Referenced by AgentStatePerceptor(), and Percept().


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