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(String community,
String group,
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(String community,
String group,
String role,
Message messageToSend,
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(String community,
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(String community,
String group,
String role,
Object passKey)
Requests a role even if the agent has been launched
using one of the
launchAgentBucket methods with non null
roles. |
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(String community,
String group)
Creates a new Group within a community.
|
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(String community,
String group,
boolean isDistributed)
Creates a new Group within a community.
|
AbstractAgent.ReturnCode |
AbstractAgent.createGroup(String community,
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(Node agentXmlNode)
Launch agents by parsing an XML node.
|
AbstractAgent.ReturnCode |
AbstractAgent.launchXmlAgents(String xmlFile)
launch all the agents defined in an xml configuration file
|
AbstractAgent.ReturnCode |
AbstractAgent.leaveGroup(String community,
String group)
Makes this agent leaves the group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.leaveRole(String community,
String group,
String role)
Abandons an handled role within a group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.requestRole(String community,
String group,
String role)
Requests a role within a group of a particular community.
|
AbstractAgent.ReturnCode |
AbstractAgent.requestRole(String community,
String group,
String role,
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(String community,
String group,
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,
String senderRole)
Sends a message, using an agent address, specifying explicitly the role
used to send it.
|
AbstractAgent.ReturnCode |
AbstractAgent.sendMessageWithRole(String community,
String group,
String role,
Message message,
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,
String senderRole)
Sends a message by replying to a previously received message.
|
static AbstractAgent.ReturnCode |
AbstractAgent.ReturnCode.valueOf(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