Package | Description |
---|---|
madkit.kernel |
Provides classes that are fundamental to the design of MaDKit applications.
|
Modifier and Type | Method and Description |
---|---|
AbstractAgent.ReturnCode |
AbstractAgent.broadcastMessage(java.lang.String community,
java.lang.String group,
java.lang.String role,
Message message)
Broadcasts a message to every agent having a role in a group in a community, but not to the sender.
|
AbstractAgent.ReturnCode |
AbstractAgent.broadcastMessageWithRole(java.lang.String community,
java.lang.String group,
java.lang.String role,
Message messageToSend,
java.lang.String senderRole)
Broadcasts a message to every agent having a role in a group in a community using a specific role for the sender.
|
AbstractAgent.ReturnCode |
AbstractAgent.bucketModeCreateGroup(java.lang.String community,
java.lang.String group,
boolean isDistributed,
Gatekeeper keyMaster)
Creates a new Group within a community even if the agent has been launched using using one of the
launchAgentBucket methods. |
AbstractAgent.ReturnCode |
AbstractAgent.bucketModeRequestRole(java.lang.String community,
java.lang.String group,
java.lang.String role,
java.lang.Object passKey)
Requests a role even if the agent has been launched using one of the
launchAgentBucket methods with no
null roles. |
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(java.lang.String community,
java.lang.String group)
Creates a new Group within a community.
|
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(java.lang.String community,
java.lang.String group,
boolean isDistributed)
Creates a new Group within a community.
|
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(java.lang.String community,
java.lang.String group,
boolean isDistributed,
Gatekeeper keyMaster)
Creates a new Group within a community.
|
AbstractAgent.ReturnCode |
AbstractAgent.killAgent(AbstractAgent target)
Kills the targeted agent.
|
AbstractAgent.ReturnCode |
Agent.killAgent(AbstractAgent target,
int timeOutSeconds) |
AbstractAgent.ReturnCode |
AbstractAgent.killAgent(AbstractAgent target,
int timeOutSeconds)
Kills the targeted agent.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
boolean createFrame)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
int timeOutSeconds)
Launches a new agent in the MaDKit platform.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchAgent(AbstractAgent agent,
int timeOutSeconds,
boolean createFrame)
Launches a new agent and returns when the agent has completed its
AbstractAgent.activate() method or when
timeOutSeconds seconds elapsed. |
AbstractAgent.ReturnCode |
AbstractAgent.launchNode(org.w3c.dom.Node agentXmlNode)
Launch agents by parsing an XML node.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchXmlAgents(java.lang.String xmlFile)
launch all the agents defined in an xml configuration file
|
AbstractAgent.ReturnCode |
AbstractAgent.leaveGroup(java.lang.String community,
java.lang.String group)
Makes this agent leaves the group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.leaveRole(java.lang.String community,
java.lang.String group,
java.lang.String role)
Abandons an handled role within a group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.requestRole(java.lang.String community,
java.lang.String group,
java.lang.String role)
Requests a role within a group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.requestRole(java.lang.String community,
java.lang.String group,
java.lang.String role,
java.lang.Object passKey)
Requests a role within a group of a particular community using a passKey.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendMessage(AgentAddress receiver,
Message messageToSend)
Sends a message to an agent using an agent address.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendMessage(java.lang.String community,
java.lang.String group,
java.lang.String role,
Message message)
Sends a message to an agent having this position in the organization, specifying explicitly the role used to send it.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendMessageWithRole(AgentAddress receiver,
Message message,
java.lang.String senderRole)
Sends a message, using an agent address, specifying explicitly the role used to send it.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendMessageWithRole(java.lang.String community,
java.lang.String group,
java.lang.String role,
Message message,
java.lang.String senderRole)
Sends a message to an agent having this position in the organization.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendReply(Message messageToReplyTo,
Message reply)
Sends a message by replying to a previously received message.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendReplyWithRole(Message messageToReplyTo,
Message reply,
java.lang.String senderRole)
Sends a message by replying to a previously received message.
|
static AbstractAgent.ReturnCode |
AbstractAgent.ReturnCode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AbstractAgent.ReturnCode[] |
AbstractAgent.ReturnCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Fabien Michel, Olivier Gutknecht, Jacques Ferber - September 9 2019