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
    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 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.
  • Method Details

    • getName

      java.lang.String getName()
      Returns name of the agent.
      Returns:
      name of the agent
    • reset

      void reset​(AgentOptions options)
      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

      void observe​(IEnvironment environment)
      Agent is given new percepts to process and save for the next actionSelection().
      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 -