massim.javaagents.agents2011
Class SimpleExplorerAgent

java.lang.Object
  extended by massim.javaagents.Agent
      extended by massim.javaagents.agents2011.SimpleExplorerAgent

public class SimpleExplorerAgent
extends Agent


Field Summary
 
Fields inherited from class massim.javaagents.Agent
goals
 
Constructor Summary
SimpleExplorerAgent(java.lang.String name, java.lang.String team)
           
 
Method Summary
 void handlePercept(eis.iilang.Percept p)
          This method is called if the environment-interface sends a percept as a notification.
 eis.iilang.Action step()
          Executes one step of the agent.
 
Methods inherited from class massim.javaagents.Agent
addBelief, addGoal, broadcastBelief, clearBeliefs, clearGoals, containsBelief, containsGoal, createAgentFromClass, equals, getAllBeliefs, getAllPercepts, getBeliefBase, getEnvironmentInterface, getGoalBase, getMessages, getName, getTeam, hashCode, println, removeBeliefs, removeGoals, sendMessage, setEnvironmentInterface
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExplorerAgent

public SimpleExplorerAgent(java.lang.String name,
                           java.lang.String team)
Method Detail

handlePercept

public void handlePercept(eis.iilang.Percept p)
Description copied from class: Agent
This method is called if the environment-interface sends a percept as a notification. Note, that sending percepts-via-notifications must be explicitely activated for the environment-interface. An alternative is to use the getAllPercepts method which yields all percepts.

Specified by:
handlePercept in class Agent
Parameters:
p - the percept to be handled

step

public eis.iilang.Action step()
Description copied from class: Agent
Executes one step of the agent. This method is assumed to terminate in appropriate time.

Specified by:
step in class Agent


Copyright © 2011. All Rights Reserved.