Package ch.idsia.agents.controllers
Class TimingAgent
java.lang.Object
ch.idsia.agents.controllers.MarioAgentBase
ch.idsia.agents.controllers.TimingAgent
- All Implemented Interfaces:
IAgent
public class TimingAgent extends MarioAgentBase implements IAgent
Created by IntelliJ IDEA.
User: julian
Date: Aug 10, 2009
Time: 6:41:42 PM
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TimingAgent(IAgent agent)
-
Method Summary
Modifier and Type Method Description MarioInput
actionSelection()
Agent should now perform an action-selection and return actions it wants to perform.double
averageTimeTaken()
java.lang.String
getName()
Returns name of the agent.void
reset(AgentOptions options)
Called before the agent is executed for the first time or in-between respective tasks/scenarios.
-
Constructor Details
-
Method Details
-
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
- Specified by:
actionSelection
in classMarioAgentBase
- Returns:
- Actions to perform
-
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.- Specified by:
reset
in interfaceIAgent
- Overrides:
reset
in classMarioAgentBase
-
getName
public java.lang.String getName()Description copied from interface:IAgent
Returns name of the agent.- Specified by:
getName
in interfaceIAgent
- Overrides:
getName
in classMarioAgentBase
- Returns:
- name of the agent
-
averageTimeTaken
public double averageTimeTaken()
-