sajas.domain
Class AMSService
java.lang.Object
sajas.domain.AMSService
public class AMSService
The AMSService is re-implemented to avoid blocking approaches, given SAJaS single thread nature.
Public static methods to register and deregister agents are still available, but implemented as database operations,
instead of requiring a FIPA communication with the AMS agent.
Author:
-
hlc
See Also:
-
jade.domain.AMSService
Field Summary |
static jade.core.AID |
amsAID |
Method Summary |
static void |
deregister(Agent agent) |
|
getAgent(jade.core.AID aid) Gets the Agent object given its AID. |
static void |
initialize() Initializes the AMS service. |
static void |
register(Agent agent) Simpler register method, without the need to provide an AMSAgentDescription. |
static void |
register(Agent agent, jade.domain.FIPAAgentManagement.AMSAgentDescription amsd) |
static void |
send(jade.lang.acl.ACLMessage msg, boolean cloneOriginal, boolean needClone) Posts a message in each of the receivers' mailbox. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
amsAID
public static jade.core.AID amsAID
AMSService
public AMSService()
initialize
public static void initialize()
-
Initializes the AMS service.
Programmers should have no need to use this method.
register
public static void register(Agent agent) -
Simpler register method, without the need to provide an AMSAgentDescription.
Programmers should have no need to use this method.
register
public static void register(Agent agent, jade.domain.FIPAAgentManagement.AMSAgentDescription amsd) throws jade.domain.FIPAException -
Throws:
-
jade.domain.FIPAException
See Also:
-
jade.domain.AMSService.register(jade.core.Agent, jade.domain.FIPAAgentManagement.AMSAgentDescription)
deregister
public static void deregister(Agent agent) -
See Also:
-
jade.domain.AMSService.deregister(jade.core.Agent)
getAgent
public static Agent getAgent(jade.core.AID aid) -
Gets the Agent object given its AID.
Programmers should have no need to use this method.
send
public static void send(jade.lang.acl.ACLMessage msg,
boolean cloneOriginal,
boolean needClone)
-
Posts a message in each of the receivers' mailbox.
Programmers should have no need to use this method.
Parameters:
-
msg - The message to deliver
-
cloneOriginal - A flag indicating whether the message should be cloned, to prevent modifications of the original message
-
needClone - If set, a separate (cloned) message will be sent to each receiver
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