Class ExploreCoopAgent

java.lang.Object
jade.core.Agent
agent.AbstractDeltaAgent
eu.su.mas.dedale.mas.AbstractDedaleAgent
eu.su.mas.dedale.mas.agents.dedaleDummyAgents.Explo.ExploreCoopAgent
All Implemented Interfaces:
agent.A2oInterface, jade.core.TimerListener, jade.util.leap.Serializable, Serializable, Runnable

public class ExploreCoopAgent extends AbstractDedaleAgent
 ExploreCoop agent. 
 It explore the map using a DFS algorithm and share the topology with the agents it encounter.
 It stops when all nodes have been visited.
  
Author:
hc
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class jade.core.Agent

    jade.core.Agent.Interrupted
  • Field Summary

    Fields inherited from class jade.core.Agent

    AP_ACTIVE, AP_DELETED, AP_IDLE, AP_INITIATED, AP_MAX, AP_MIN, AP_SUSPENDED, AP_WAITING, D_ACTIVE, D_MAX, D_MIN, D_RETIRED, D_SUSPENDED, D_UNKNOWN, MSG_QUEUE_CLASS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
    This method is automatically called when "agent".start() is executed.
    protected void
    This method is automatically called after doDelete()

    Methods inherited from class agent.AbstractDeltaAgent

    addAbility, addSharableObject, getKnowledge, getKnowledge, getSharableObject, removeSharableObject, setKnowledge

    Methods inherited from class jade.core.Agent

    addBehaviour, afterClone, beforeClone, blockingReceive, blockingReceive, blockingReceive, blockingReceive, changeStateTo, clean, createMessageQueue, doActivate, doClone, doDelete, doMove, doSuspend, doTimeOut, doWait, doWait, doWake, getAgentState, getAID, getAID, getAMS, getArguments, getBehavioursCnt, getBootProperties, getContainerController, getContentManager, getCurQueueSize, getDefaultDF, getExecutedBehavioursCnt, getGenerateBehaviourEvents, getGenerateMessageEvents, getHap, getHelper, getLocalName, getName, getO2AInterface, getO2AObject, getPostedMessagesCnt, getProperty, getQueueSize, getReceivedMessagesCnt, getSentMessagesCnt, getState, here, isAlive, isRestarting, join, notifyChangeBehaviourState, notifyRestarted, postMessage, putBack, putO2AObject, receive, receive, receive, registerO2AInterface, removeBehaviour, removeTimer, restartLater, restoreBufferedState, restoreFields, run, send, setArguments, setEnabledO2ACommunication, setGenerateBehaviourEvents, setGenerateMessageEvents, setO2AManager, setQueueSize, waitUntilStarted, write

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExploreCoopAgent

      public ExploreCoopAgent()
  • Method Details

    • setup

      protected void setup()
      This method is automatically called when "agent".start() is executed. Consider that Agent is launched for the first time. 1) set the agent attributes 2) add the behaviours
      Overrides:
      setup in class AbstractDedaleAgent
    • takeDown

      protected void takeDown()
      This method is automatically called after doDelete()
      Overrides:
      takeDown in class AbstractDedaleAgent
    • beforeMove

      protected void beforeMove()
      Overrides:
      beforeMove in class AbstractDedaleAgent
    • afterMove

      protected void afterMove()
      Overrides:
      afterMove in class AbstractDedaleAgent