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
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 -
Method Summary
Methods inherited from class eu.su.mas.dedale.mas.AbstractDedaleAgent
closeLock, deployMe, dropOff, emptyMyBackPack, getBackPackFreeSpace, getCurrentPosition, getMyExpertise, getMyTreasureType, loadEntityCaracteristics, moveTo, observe, openLock, pick, sendMessage, throwGrenadeMethods inherited from class agent.AbstractDeltaAgent
addAbility, addSharableObject, getKnowledge, getKnowledge, getSharableObject, removeSharableObject, setKnowledgeMethods 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
-
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:
setupin classAbstractDedaleAgent
-
takeDown
protected void takeDown()This method is automatically called after doDelete()- Overrides:
takeDownin classAbstractDedaleAgent
-
beforeMove
protected void beforeMove()- Overrides:
beforeMovein classAbstractDedaleAgent
-
afterMove
protected void afterMove()- Overrides:
afterMovein classAbstractDedaleAgent
-