Class RequestActionMessage
java.lang.Object
madkit.kernel.Message
madkit.messages.ObjectMessage<String>
madkit.messages.StringMessage
madkit.action.RequestActionMessage
- All Implemented Interfaces:
Serializable
,Cloneable
A message used to model a request made to an agent to perform an action that
corresponds to an internal method call. The message contains the name of the method to
call and the parameters to pass to the method.
It is especially used in RequestAgentMessageAction
and
AgentMethodAction
which are mainly designed to be used in a GUI to request an
agent to perform an action.
Upon reception of such a message, an agent can use
Agent.handleRequestActionMessage(RequestActionMessage)
to automatically perform
the underlying method call.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestActionMessage
(String methodName, Object... parameters) Builds a new request message with the name of the method to call and the parameters to pass to the method. -
Method Summary
Methods inherited from class madkit.messages.ObjectMessage
getContent, toString
Methods inherited from class madkit.kernel.Message
clone, getConversationID, getReceiver, getSender, getSenderRole
-
Constructor Details
-
RequestActionMessage
-
-
Method Details
-
getParameters
-