
#include <Beobot/BeobotMemory.H>

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 ¤tAction) |
| generate action based on recommendation and previous actions | |
Static Public Attributes | |
| static const int | memoryLength = 6 |
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.
| 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().
1.6.3