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 MarioInput
actionSelection()
Agent should now perform an action-selection and return actions it wants to perform.java.lang.String
getName()
Returns name of the agent.void
observe(IEnvironment environment)
Agent is given new percepts to process and save for the nextIAgent.actionSelection()
.void
receiveReward(float intermediateReward)
Agent is informed about 'intermediateReward' it accumulated so-far.void
reset(AgentOptions options)
Called before the agent is executed for the first time or in-between respective tasks/scenarios.void
setName(java.lang.String name)
void
setReplayer(Replayer replayer)
-
Constructor Details
-
ReplayAgent
public ReplayAgent(java.lang.String name)
-
-
Method Details
-
getName
public java.lang.String getName()Description copied from interface:IAgent
Returns name of the agent. -
setName
public void setName(java.lang.String name) -
setReplayer
-
reset
Description copied from interface:IAgent
Called 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:IAgent
Agent should now perform an action-selection and return actions it wants to perform.- Specified by:
actionSelection
in interfaceIAgent
- Returns:
- Actions to perform
-
observe
Description copied from interface:IAgent
Agent is given new percepts to process and save for the nextIAgent.actionSelection()
. -
receiveReward
public void receiveReward(float intermediateReward)Description copied from interface:IAgent
Agent is informed about 'intermediateReward' it accumulated so-far.- Specified by:
receiveReward
in interfaceIAgent
-