## Uses of Class
madkit.kernel.AgentAddress

- Packages that use AgentAddress
  Package | Description
  --- | ---
  madkit.kernel | Provides classes that are fundamental to the design of MaDKit applications.
  madkit.message | Contains subclasses of `Message` which could be easily reused.
  madkit.message.hook | Contains message classes useful for monitoring MaDKit kernel events.

- - ### Uses of AgentAddress in madkit.kernel

    Methods in madkit.kernel that return AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `AgentAddress` | AbstractAgent.`getAgentAddressIn(java.lang.String community, java.lang.String group, java.lang.String role)` Returns the agent address of this agent at this CGR location.
    `AgentAddress` | AbstractAgent.`getAgentWithRole(java.lang.String community, java.lang.String group, java.lang.String role)` Returns an `AgentAddress` corresponding to an agent having this position in the organization.
    `AgentAddress` | AbstractAgent.`getDistantAgentWithRole(java.lang.String community, java.lang.String group, java.lang.String role, KernelAddress from)` Returns an `AgentAddress` corresponding to an agent having this position in the organization on a particular kernel.
    `AgentAddress` | Message.`getReceiver()` Returns the agent address corresponding to the agent that receive this message.
    `AgentAddress` | Message.`getSender()` Returns the agent address corresponding to the agent that sends this message.

    Methods in madkit.kernel that return types with arguments of type AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<AgentAddress>` | AbstractAgent.`getAgentsWithRole(java.lang.String community, java.lang.String group, java.lang.String role)` Returns an `List` containing agents that handle this role in the organization.
    `java.util.List<AgentAddress>` | AbstractAgent.`getAgentsWithRole(java.lang.String community, java.lang.String group, java.lang.String role, boolean callerIncluded)` Returns an `List` containing all the agents that handle this role in the organization.
    `java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.util.Set<AgentAddress>>>>` | AbstractAgent.`getOrganizationSnapShot(boolean global)`

    Methods in madkit.kernel with parameters of type AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | AbstractAgent.`checkAgentAddress(AgentAddress agentAddress)` Checks if this agent address is still valid.
    `AbstractAgent.ReturnCode` | AbstractAgent.`sendMessage(AgentAddress receiver, Message messageToSend)` Sends a message to an agent using an agent address.
    `Message` | Agent.`sendMessageAndWaitForReply(AgentAddress receiver, Message messageToSend)` Sends a message and waits indefinitely for an answer to it.
    `Message` | Agent.`sendMessageAndWaitForReply(AgentAddress receiver, Message messageToSend, int timeOutMilliSeconds)` Sends a message and waits for an answer to 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.
    `Message` | Agent.`sendMessageWithRoleAndWaitForReply(AgentAddress receiver, Message messageToSend, java.lang.String senderRole)` Sends a message and waits for an answer to it.
    `Message` | Agent.`sendMessageWithRoleAndWaitForReply(AgentAddress receiver, Message messageToSend, java.lang.String senderRole, java.lang.Integer timeOutMilliSeconds)` Sends a message and waits for an answer to it.

  - ### Uses of AgentAddress in madkit.message

    Methods in madkit.message that return types with arguments of type AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List<AgentAddress>` | ACLMessage.`getReceivers()` Return the list of receivers..

    Methods in madkit.message with parameters of type AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `void` | ACLMessage.`addReceiver(AgentAddress r)` Adds a value to `:receiver` slot.
    `void` | ACLMessage.`addReplyTo(AgentAddress dest)` Adds a value to `:reply-to` slot.
    `boolean` | ACLMessage.`removeReceiver(AgentAddress r)` Removes a value from `:receiver` slot.
    `boolean` | ACLMessage.`removeReplyTo(AgentAddress dest)` Removes a value from `:reply_to` slot.

  - ### Uses of AgentAddress in madkit.message.hook

    Methods in madkit.message.hook that return AgentAddress
    Modifier and Type | Method and Description
    --- | ---
    `AgentAddress` | MessageEvent.`getSourceAgent()`
    `abstract AgentAddress` | CGREvent.`getSourceAgent()` Returns the address of the agent that did the request.
    `AgentAddress` | OrganizationEvent.`getSourceAgent()`

    Constructors in madkit.message.hook with parameters of type AgentAddress
    Constructor and Description
    `OrganizationEvent(HookMessage.AgentActionEvent agentAction, AgentAddress source)`

Fabien Michel, Olivier Gutknecht, Jacques Ferber - November 18 2014