Class ControlledAgent
java.lang.Object
jade.core.Agent
agent.AbstractDeltaAgent
eu.su.mas.dedale.mas.AbstractDedaleAgent
eu.su.mas.dedale.mas.agents.dedaleDummyAgents.Controlled.ControlledAgent
- All Implemented Interfaces:
agent.A2oInterface
,jade.core.TimerListener
,jade.util.leap.Serializable
,Serializable
,Runnable
- 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is automatically called after migration to reload.protected void
This method is automatically called before migration.protected void
setup()
This method is automatically called when a Dedale agent is created.protected void
takeDown()
This method is automatically called after doDelete()Methods inherited from class eu.su.mas.dedale.mas.AbstractDedaleAgent
closeLock, deployMe, dropOff, emptyMyBackPack, getBackPackFreeSpace, getCurrentPosition, getMyExpertise, getMyTreasureType, loadEntityCaracteristics, moveTo, observe, openLock, pick, sendMessage, throwGrenade
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
-
Constructor Details
-
ControlledAgent
public ControlledAgent()
-
-
Method Details
-
setup
protected void setup()Description copied from class:AbstractDedaleAgent
This method is automatically called when a Dedale agent is created. It initialize its internal variables and add the mandatory abilities of any dedale's agent :- To deploy itself within the environment and let its internal treasure state be observable :DeployMe
- To received treasures if the agent's type is "tanker"
- To be called back home when the network migration is allowed
- To be killed from and by Home when the network migration is allowed
- Overrides:
setup
in classAbstractDedaleAgent
-
takeDown
protected void takeDown()This method is automatically called after doDelete()- Overrides:
takeDown
in classAbstractDedaleAgent
-
beforeMove
protected void beforeMove()This method is automatically called before migration. You can add here all the saving you need- Overrides:
beforeMove
in classAbstractDedaleAgent
-
afterMove
protected void afterMove()This method is automatically called after migration to reload. You can add here all the info regarding the state you want your agent to restart from- Overrides:
afterMove
in classAbstractDedaleAgent
-