Uses of Class
madkit.kernel.Message
Packages that use Message
Package
Description
Provides classes that are fundamental to the design of MaDKit applications.
Contains subclasses of
Message
which could be easily reused.Contains message classes useful for monitoring MaDKit kernel events.
-
Uses of Message in madkit.kernel
Methods in madkit.kernel that return MessageModifier and TypeMethodDescriptionprotected Message
Message.clone()
Returns a shadow copy of the message.AbstractAgent.getLastReceivedMessage()
Gets the last received message.AbstractAgent.getLastReceivedMessage
(MessageFilter filter) Gets the last received message according to a filter.AbstractAgent.getReplyTo
(Message originalMessage) Gets the next message which is a reply to the originalMessage.AbstractAgent.nextMessage()
Retrieves and removes the oldest received message contained in the mailbox.AbstractAgent.nextMessage
(MessageFilter filter) Retrieves and removes the first oldest message of the mailbox that matches the filter.AbstractAgent.purgeMailbox()
Purges the mailbox and returns the most recent received message at that time.Agent.sendMessageAndWaitForReply
(String community, String group, String role, Message messageToSend) Sends a message to an agent having this position in the organization and waits indefinitely for an answer to it.Agent.sendMessageAndWaitForReply
(String community, String group, String role, Message messageToSend, int timeOutMilliSeconds) Sends a message to an agent having this position in the organization and waits for an answer to it.Agent.sendMessageAndWaitForReply
(AgentAddress receiver, Message messageToSend) Sends a message and waits indefinitely for an answer to it.Agent.sendMessageAndWaitForReply
(AgentAddress receiver, Message messageToSend, int timeOutMilliSeconds) Sends a message and waits for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(String community, String group, String role, Message messageToSend, String senderRole) Sends a message to an agent having this position in the organization and waits indefinitely for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(String community, String group, String role, Message messageToSend, String senderRole, Integer timeOutMilliSeconds) Sends a message to an agent having this position in the organization and waits for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(AgentAddress receiver, Message messageToSend, String senderRole) Sends a message and waits for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(AgentAddress receiver, Message messageToSend, String senderRole, Integer timeOutMilliSeconds) Sends a message and waits for an answer to it.Agent.sendReplyAndWaitForReply
(Message messageToReplyTo, Message reply) Sends a reply message and waits indefinitely for an answer to it.Agent.sendReplyAndWaitForReply
(Message messageToReplyTo, Message reply, int timeOutMilliSeconds) Sends a reply message and waits for an answer to it.Agent.sendReplyWithRoleAndWaitForReply
(Message messageToReplyTo, Message reply, String senderRole) Sends a reply message and waits indefinitely for an answer to it.Agent.sendReplyWithRoleAndWaitForReply
(Message messageToReplyTo, Message reply, String senderRole, Integer timeOutMilliSeconds) Sends a reply message and waits for an answer to it.Agent.waitAnswer
(Message query) Retrieves and removes the next message that is a reply to the query message, waiting for ever if necessary until a matching reply becomes available.Agent.waitAnswer
(Message query, Integer timeOutMilliSeconds) Retrieves and removes the next message that is a reply to the query message, waiting for ever if necessary until a matching reply becomes available.Agent.waitNextMessage()
This method is the blocking version of nextMessage().Agent.waitNextMessage
(long timeOutMilliseconds) This method gets the next message of the mailbox or waits for a new incoming message considering a certain delay.Agent.waitNextMessage
(Integer timeOutMilliseconds, MessageFilter filter) This method gets the next message of the mailbox or waits for a new incoming acceptable message up to a certain delay.Agent.waitNextMessage
(MessageFilter filter) Retrieves and removes the next message that complies with the filter, waiting for ever if necessary until a matching message becomes available.Methods in madkit.kernel that return types with arguments of type MessageModifier and TypeMethodDescriptionAgent.broadcastMessageWithRoleAndWaitForReplies
(String community, String group, String role, Message message, String senderRole, Integer timeOutMilliSeconds) Broadcasts a message and wait for answers considering a timeout duration.AbstractAgent.nextMessages
(MessageFilter filter) Retrieves and removes all the messages of the mailbox that match the filter, in the order they were received.Methods in madkit.kernel with parameters of type MessageModifier and TypeMethodDescriptionAbstractAgent.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.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.Agent.broadcastMessageWithRoleAndWaitForReplies
(String community, String group, String role, Message message, String senderRole, Integer timeOutMilliSeconds) Broadcasts a message and wait for answers considering a timeout duration.protected void
Changes my state according to aSchedulingMessage
and sends a reply to the sender as acknowledgment.AbstractAgent.getReplyTo
(Message originalMessage) Gets the next message which is a reply to the originalMessage.void
AbstractAgent.receiveMessage
(Message m) This method offers a convenient way for regular object to send messages to Agents, especially threaded agents.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.sendMessage
(AgentAddress receiver, Message messageToSend) Sends a message to an agent using an agent address.Agent.sendMessageAndWaitForReply
(String community, String group, String role, Message messageToSend) Sends a message to an agent having this position in the organization and waits indefinitely for an answer to it.Agent.sendMessageAndWaitForReply
(String community, String group, String role, Message messageToSend, int timeOutMilliSeconds) Sends a message to an agent having this position in the organization and waits for an answer to it.Agent.sendMessageAndWaitForReply
(AgentAddress receiver, Message messageToSend) Sends a message and waits indefinitely for an answer to it.Agent.sendMessageAndWaitForReply
(AgentAddress receiver, Message messageToSend, int timeOutMilliSeconds) Sends a message and waits for an answer to it.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.sendMessageWithRole
(AgentAddress receiver, Message message, String senderRole) Sends a message, using an agent address, specifying explicitly the role used to send it.Agent.sendMessageWithRoleAndWaitForReply
(String community, String group, String role, Message messageToSend, String senderRole) Sends a message to an agent having this position in the organization and waits indefinitely for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(String community, String group, String role, Message messageToSend, String senderRole, Integer timeOutMilliSeconds) Sends a message to an agent having this position in the organization and waits for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(AgentAddress receiver, Message messageToSend, String senderRole) Sends a message and waits for an answer to it.Agent.sendMessageWithRoleAndWaitForReply
(AgentAddress receiver, Message messageToSend, String senderRole, Integer timeOutMilliSeconds) Sends a message and waits for an answer to it.Sends a message by replying to a previously received message.Agent.sendReplyAndWaitForReply
(Message messageToReplyTo, Message reply) Sends a reply message and waits indefinitely for an answer to it.Agent.sendReplyAndWaitForReply
(Message messageToReplyTo, Message reply, int timeOutMilliSeconds) Sends a reply message and waits for an answer to it.AbstractAgent.sendReplyWithRole
(Message messageToReplyTo, Message reply, String senderRole) Sends a message by replying to a previously received message.Agent.sendReplyWithRoleAndWaitForReply
(Message messageToReplyTo, Message reply, String senderRole) Sends a reply message and waits indefinitely for an answer to it.Agent.sendReplyWithRoleAndWaitForReply
(Message messageToReplyTo, Message reply, String senderRole, Integer timeOutMilliSeconds) Sends a reply message and waits for an answer to it.Agent.waitAnswer
(Message query) Retrieves and removes the next message that is a reply to the query message, waiting for ever if necessary until a matching reply becomes available.Agent.waitAnswer
(Message query, Integer timeOutMilliSeconds) Retrieves and removes the next message that is a reply to the query message, waiting for ever if necessary until a matching reply becomes available. -
Uses of Message in madkit.message
Subclasses of Message in madkit.messageModifier and TypeClassDescriptionclass
This class describes an ACL message.class
This class describes a generic speech act message.class
A message class that conveys a boolean value.class
EnumMessage<E extends Enum<E>>
This parameterizable class could be used to build a message tagged with an enumeration and conveying any java objects using an array of Object.class
Message type that could be used to ask the gui manager to do somethingclass
A message class that conveys an integer.class
The brand new version of KernelMessage.class
This class describes a KQML message.class
MapMessage<K,
V> This class could be used to build message conveyingMap
objects between MaDKit agents.class
This parameterizable class could be used to convey any Java Object between MaDKit agents.class
This message class could be used to interact with a Scheduler agent.class
A message class that conveys a string.class
A message that carries an XML document.Methods in madkit.message with parameters of type MessageModifier and TypeMethodDescriptionboolean
boolean
Tests if a specified message matches the requirement.boolean
Constructors in madkit.message with parameters of type MessageModifierConstructorDescriptionConversationFilter
(Message origin) a new filter that acts according to the conversationID of a message. -
Uses of Message in madkit.message.hook
Subclasses of Message in madkit.message.hookModifier and TypeClassDescriptionclass
A message which is sent to agents that have requested a hook onHookMessage.AgentActionEvent.AGENT_STARTED
orHookMessage.AgentActionEvent.AGENT_TERMINATED
class
Root class of messages which are sent to agents that have requested hooks to the kernelclass
This message could be used to request a kernel's hook on agent actions so that the sender will be kept informed when an agent performed particular action.class
A message which is sent to agents that have requested a hook onHookMessage.AgentActionEvent.AGENT_STARTED
orHookMessage.AgentActionEvent.AGENT_TERMINATED
class
A message which is sent to agents that have requested a hook onHookMessage.AgentActionEvent.CREATE_GROUP
,HookMessage.AgentActionEvent.REQUEST_ROLE
,HookMessage.AgentActionEvent.LEAVE_GROUP
, orHookMessage.AgentActionEvent.LEAVE_ROLE
Methods in madkit.message.hook that return MessageConstructors in madkit.message.hook with parameters of type Message