Class RequestAgentMessageAction

All Implemented Interfaces:
EventListener, EventHandler<ActionEvent>

public class RequestAgentMessageAction extends ActionWithData
An action that sends a RequestActionMessage to an agent. It is used to request an agent to execute a method with given parameters. It is especially useful to interact with agents from GUIs, without compromising the encapsulation of the agent. Moreover, using the Agent.handleRequestActionMessage(RequestActionMessage) method, the agent can automatically handle such requests.
See Also:
  • Constructor Details

    • RequestAgentMessageAction

      public RequestAgentMessageAction(Agent agent, String methodName, Object... params)