massim.javaagents.agents
Class SimpleInspectorAgent

java.lang.Object
  extended by massim.javaagents.Agent
      extended by massim.javaagents.agents.SimpleInspectorAgent

public class SimpleInspectorAgent
extends Agent


Field Summary
 
Fields inherited from class massim.javaagents.Agent
beliefs, goals
 
Constructor Summary
SimpleInspectorAgent(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

SimpleInspectorAgent

public SimpleInspectorAgent(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 © 2012. All Rights Reserved.