Class SenderBehaviour

    • Constructor Detail

      • SenderBehaviour

        public SenderBehaviour​(Agent a,
                               ACLMessage msg)
        Send a given ACL message. This constructor creates a SenderBehaviour which sends an ACL message.
        Parameters:
        a - The agent this behaviour belongs to, and that will send() the message.
        msg - An ACL message to send.
    • Method Detail

      • action

        public void action()
        Actual behaviour implementation. This method sends an ACL message, using either the given AgentGroup or the :receiver message slot to get the message recipient names.
        Specified by:
        action in class Behaviour
        See Also:
        CompositeBehaviour