Uses of Class
madkit.kernel.AgentAddress
Packages that use AgentAddress
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 AgentAddress in madkit.kernel
Methods in madkit.kernel that return AgentAddressModifier and TypeMethodDescriptionAbstractAgent.getAgentAddressIn
(String community, String group, String role) Agent's address at this CGR location.AbstractAgent.getAgentWithRole
(String community, String group, String role) Returns anAgentAddress
corresponding to an agent having this position in the organization.AbstractAgent.getDistantAgentWithRole
(String community, String group, String role, KernelAddress from) AgentAddress
corresponding to an agent having this position in the organization on a particular kernel.Message.getReceiver()
Returns the agent address corresponding to the agent that receive this message.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 AgentAddressModifier and TypeMethodDescriptionAbstractAgent.getAgentsWithRole
(String community, String group, String role) A list containing other agents playing this role in the organization.AbstractAgent.getAgentsWithRole
(String community, String group, String role, boolean callerIncluded) A list containing all the agents playing this role in the organization.Methods in madkit.kernel with parameters of type AgentAddressModifier and TypeMethodDescriptionboolean
AbstractAgent.checkAgentAddress
(AgentAddress agentAddress) Checks if this agent address is still valid.AbstractAgent.sendMessage
(AgentAddress receiver, Message messageToSend) Sends a message to an agent using an agent address.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
(AgentAddress receiver, Message message, String senderRole) Sends a message, using an agent address, specifying explicitly the role used to send 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. -
Uses of AgentAddress in madkit.message
Methods in madkit.message that return types with arguments of type AgentAddressMethods in madkit.message with parameters of type AgentAddressModifier and TypeMethodDescriptionvoid
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 AgentAddressModifier and TypeMethodDescriptionabstract AgentAddress
CGREvent.getSourceAgent()
Returns the address of the agent that did the request.MessageEvent.getSourceAgent()
OrganizationEvent.getSourceAgent()
Constructors in madkit.message.hook with parameters of type AgentAddressModifierConstructorDescriptionOrganizationEvent
(HookMessage.AgentActionEvent agentAction, AgentAddress source)