Package ch.idsia.agents.controllers
Class ReplayAgent
java.lang.Object
ch.idsia.agents.controllers.ReplayAgent
- All Implemented Interfaces:
IAgent
public class ReplayAgent extends java.lang.Object implements IAgent
Created by IntelliJ IDEA.
User: Sergey Karakovskiy, sergey.karakovskiy@gmail.com
Date: Oct 9, 2010
Time: 2:08:47 AM
Package: ch.idsia.agents.controllers
-
Constructor Summary
Constructors Constructor Description ReplayAgent(java.lang.String name) -
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 nextIAgent.actionSelection().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.voidsetName(java.lang.String name)voidsetReplayer(Replayer replayer)
-
Constructor Details
-
ReplayAgent
public ReplayAgent(java.lang.String name)
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from interface:IAgentReturns name of the agent. -
setName
public void setName(java.lang.String name) -
setReplayer
-
reset
Description copied from interface:IAgentCalled before the agent is executed for the first time or in-between respective tasks/scenarios.
You should clear all dynamic/intermediate data. -
actionSelection
Description copied from interface:IAgentAgent should now perform an action-selection and return actions it wants to perform.- Specified by:
actionSelectionin interfaceIAgent- Returns:
- Actions to perform
-
observe
Description copied from interface:IAgentAgent is given new percepts to process and save for the nextIAgent.actionSelection(). -
receiveReward
public void receiveReward(float intermediateReward)Description copied from interface:IAgentAgent is informed about 'intermediateReward' it accumulated so-far.- Specified by:
receiveRewardin interfaceIAgent
-