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 next IAgent.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)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.
      Specified by:
      getName in interface IAgent
      Returns:
      name of the agent
    • setName

      public void setName​(java.lang.String name)
    • setReplayer

      public void setReplayer​(Replayer replayer)
    • reset

      public void reset​(AgentOptions options)
      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.
      Specified by:
      reset in interface IAgent
    • actionSelection

      public MarioInput actionSelection()
      Description copied from interface: IAgent
      Agent should now perform an action-selection and return actions it wants to perform.
      Specified by:
      actionSelection in interface IAgent
      Returns:
      Actions to perform
    • observe

      public void observe​(IEnvironment environment)
      Description copied from interface: IAgent
      Agent is given new percepts to process and save for the next IAgent.actionSelection().
      Specified by:
      observe in interface IAgent
    • receiveReward

      public void receiveReward​(float intermediateReward)
      Description copied from interface: IAgent
      Agent is informed about 'intermediateReward' it accumulated so-far.
      Specified by:
      receiveReward in interface IAgent