Package ch.idsia.agents
Interface IAgent
- All Known Implementing Classes:
CheaterKeyboardAgent,KeyboardAgent,MarioAgent,MarioAgentBase,MarioAIBase,MarioHijackAIBase,ReplayAgent,TimingAgent
public interface IAgent
Created by IntelliJ IDEA.
User: Sergey Karakovskiy
Date: Mar 28, 2009
Time: 8:46:42 PM
package: ch.idsia.controllers.agents
-
Method Summary
Modifier and Type Method Description MarioInputactionSelection()Agent should now perform an action-selection and return actions it wants to perform.java.lang.StringgetName()Returns name of the agent.voidobserve(IEnvironment environment)Agent is given new percepts to process and save for the nextactionSelection().voidreceiveReward(float intermediateReward)Agent is informed about 'intermediateReward' it accumulated so-far.voidreset(AgentOptions options)Called before the agent is executed for the first time or in-between respective tasks/scenarios.
-
Method Details
-
getName
java.lang.String getName()Returns name of the agent.- Returns:
- name of the agent
-
reset
Called before the agent is executed for the first time or in-between respective tasks/scenarios.
You should clear all dynamic/intermediate data.- Parameters:
options-
-
observe
Agent is given new percepts to process and save for the nextactionSelection().- Parameters:
environment-
-
actionSelection
MarioInput actionSelection()Agent should now perform an action-selection and return actions it wants to perform.- Returns:
- Actions to perform
-
receiveReward
void receiveReward(float intermediateReward)Agent is informed about 'intermediateReward' it accumulated so-far.- Parameters:
intermediateReward-
-