BeobotMemory Class Reference

Memory of a Beobot. More...

#include <Beobot/BeobotMemory.H>

Collaboration diagram for BeobotMemory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void presentSensation (BeobotSensation &sensa)
 set present sensation
void presentActionRecommendation (BeobotAction &act)
 set present action
bool passedSensation (int howOld, BeobotSensation &sensa)
 get sensation at time t-howOld - false iif nothing to remember
void generatePresentAction (BeobotAction &currentAction)
 generate action based on recommendation and previous actions

Static Public Attributes

static const int memoryLength = 6

Detailed Description

Memory of a Beobot.

this is more or less a FIFO queue of actions & sensation actions are computed from the recommended actions proposed by Beobot::highLevel()

Definition at line 53 of file BeobotMemory.H.


Member Function Documentation

void BeobotMemory::generatePresentAction ( BeobotAction currentAction  ) 

generate action based on recommendation and previous actions

Definition at line 93 of file BeobotMemory.C.

References ASSERT, BeobotAction::getSpeed(), BeobotAction::getTurn(), BeobotAction::setGear(), BeobotAction::setSpeed(), and BeobotAction::setTurn().

Referenced by Beobot::decision().

bool BeobotMemory::passedSensation ( int  howOld,
BeobotSensation sensa 
)

get sensation at time t-howOld - false iif nothing to remember

Definition at line 79 of file BeobotMemory.C.

References ASSERT.

Referenced by Beobot::DEBUGgetClustered(), Beobot::highLevel(), and Beobot::intermediateLevel().

void BeobotMemory::presentActionRecommendation ( BeobotAction act  ) 

set present action

Definition at line 68 of file BeobotMemory.C.

References ASSERT.

Referenced by Beobot::highLevel().

void BeobotMemory::presentSensation ( BeobotSensation sensa  ) 

set present sensation

Definition at line 54 of file BeobotMemory.C.

References ASSERT.

Referenced by Beobot::intermediateLevel().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:20:13 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3