Note that all the documentation for all objects and routines includes HTML anchors to facilitate automatic indexing into this document. Links to the source code are also provided. The agent is the entity that interacts with the environment, that receives senations and selects actions. The agent may or may not learn, may or may not build a model of the environment, etc. The base class of all agents.
Specific agents are instances of subclasses derived from Agent .
If the agent learns or changes in any way with experience, then this function should reset it to its original, naive condition. This function is usually provided by the user for her specialized agent class. It is called at the beginning of each new trial. Also, the agent instance should provide the space in memory where the action is stored, which should persist after the function is called. Memory allocation should be done with the new constructor, the simulator takes the responsibility of freeing the memory with delete when the object is no longer needed.