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 MarioInputactionSelection()Agent should now perform an action-selection and return actions it wants to perform.doubleaverageTimeTaken()java.lang.StringgetName()Returns name of the agent.voidreset(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:IAgentAgent should now perform an action-selection and return actions it wants to perform.- Specified by:
actionSelectionin interfaceIAgent- Specified by:
actionSelectionin classMarioAgentBase- Returns:
- Actions to perform
-
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.- Specified by:
resetin interfaceIAgent- Overrides:
resetin classMarioAgentBase
-
getName
public java.lang.String getName()Description copied from interface:IAgentReturns name of the agent.- Specified by:
getNamein interfaceIAgent- Overrides:
getNamein classMarioAgentBase- Returns:
- name of the agent
-
averageTimeTaken
public double averageTimeTaken()
-