sajas.core
Class Agent
java.lang.Object
sajas.core.Agent Direct Known Subclasses:
-
public class Agent
extends Object
This is the base class for implementing agents.
Agent scheduling is simulation-platform-specific: it is handled through a static AgentScheduler
,
which is set by SAJaS when launching the simulation.
Note: this class does not extend jade.core.Agent
due to non-public method declarations that needed to be re-implemented.
Author:
-
hlc
See Also:
-
jade.core.Agent
Constructor Summary |
Agent() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Agent
public Agent()
setArguments
public final void setArguments(Object[] args)
-
See Also:
-
jade.core.Agent.setArguments(Object[])
getArguments
public Object[] getArguments()
-
See Also:
-
jade.core.Agent.getArguments()
addBehaviour
-
See Also:
-
jade.core.Agent.addBehaviour(jade.core.behaviours.Behaviour)
removeBehaviour
-
See Also:
-
jade.core.Agent.removeBehaviour(jade.core.behaviours.Behaviour), jade.core.Scheduler.remove(jade.core.behaviours.Behaviour)
setup
protected void setup()
-
See Also:
-
jade.core.Agent.setup()
takeDown
protected void takeDown()
-
See Also:
-
jade.core.Agent.takeDown()
doDelete
public void doDelete()
-
See Also:
-
jade.core.Agent.doDelete()
setAID
public void setAID(jade.core.AID aid)
-
See Also:
-
jade.core.Agent.setAID(jade.core.AID)
getAID
public final jade.core.AID getAID()
-
See Also:
-
jade.core.Agent.getAID()
getLocalName
public final String getLocalName()
-
See Also:
-
jade.core.Agent.getLocalName()
getName
public final String getName()
-
See Also:
-
jade.core.Agent.getName()
getAMS
public final jade.core.AID getAMS()
-
See Also:
-
jade.core.Agent.getAMS()
getDefaultDF
public jade.core.AID getDefaultDF()
-
See Also:
-
jade.core.Agent.getDefaultDF()
setAgentScheduler
-
Sets the agent scheduler.
This method is used by simulation launchers to set the simulation engine-specific scheduler.
Programmers should have no need to use this method.
start
public void start()
-
Starts this agent by adding it to the agent scheduler.
step
public final void step()
-
Note that this implementation does not take into account agent life-cycle management.
-
See Also:
-
jade.core.Agent.run()
send
public final void send(jade.lang.acl.ACLMessage msg)
-
See Also:
-
jade.core.Agent.send(jade.lang.acl.ACLMessage)
receive
public final jade.lang.acl.ACLMessage receive()
-
See Also:
-
jade.core.Agent.receive()
receive
public final jade.lang.acl.ACLMessage receive(jade.lang.acl.MessageTemplate template)
-
See Also:
-
jade.core.Agent.receive(jade.lang.acl.MessageTemplate)
blockingReceive
public final jade.lang.acl.ACLMessage blockingReceive()
-
See Also:
-
jade.core.Agent.blockingReceive()
blockingReceive
public final jade.lang.acl.ACLMessage blockingReceive(long millis)
-
See Also:
-
jade.core.Agent.blockingReceive(long)
blockingReceive
public final jade.lang.acl.ACLMessage blockingReceive(jade.lang.acl.MessageTemplate pattern)
-
See Also:
-
jade.core.Agent.blockingReceive(jade.lang.acl.MessageTemplate)
blockingReceive
public final jade.lang.acl.ACLMessage blockingReceive(jade.lang.acl.MessageTemplate pattern,
long millis)
-
See Also:
-
jade.core.Agent.blockingReceive(jade.lang.acl.MessageTemplate, long)
postMessage
public final void postMessage(jade.lang.acl.ACLMessage msg)
-
See Also:
-
jade.core.Agent.postMessage(jade.lang.acl.ACLMessage)
setContainerController
-
Used by sajas.wrapper.ContainetController to appropriately set the ContainerController of this agent.
Programmers should have no need to use this method.
getContainerController
-
See Also:
-
jade.core.Agent.getContainerController()
getContentManager
public jade.content.ContentManager getContentManager()
-
See Also:
-
jade.core.Agent.getContentManager()
restartLater
public void restartLater(Behaviour b, long millis) -
See Also:
-
jade.core.Agent.restartLater(jade.core.behaviours.Behaviour, long)
notifyRestarted
-
See Also:
-
jade.core.Agent.notifyRestarted(jade.core.behaviours.Behaviour)
notifyChangeBehaviourState
public void notifyChangeBehaviourState(Behaviour b, String from, String to) -
See Also:
-
jade.core.Agent.notifyChangeBehaviourState(jade.core.behaviours.Behaviour, String, String)
removeTimer
-
See Also:
-
jade.core.Agent.removeTimer(jade.core.behaviours.Behaviour)
DocFlex/Doclet is both a multi-format Javadoc doclet and a free edition of DocFlex/Javadoc, which is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, DocFlex/Javadoc may be the only tool able to help you! Find out more at www.docflex.com