Class PostedMessage

    • Constructor Detail

      • PostedMessage

        public PostedMessage()
        Default constructor. A default constructor is necessary for ontological classes.
    • Method Detail

      • getName

        public String getName()
        Retrieve the name of this event.
        Specified by:
        getName in interface Event
        Returns:
        A constant value for the event name.
      • setSender

        public void setSender​(AID id)
        Set the sender slot of this event.
        Parameters:
        id - The agent identifier of the agent that sent the message.
      • getSender

        public AID getSender()
        Retrieve the value of the sender slot of this event, containing the agent identifier of the agent that sent the message.
        Returns:
        The value of the sender slot, or null if no value was set.
      • setMessage

        public void setMessage​(ACLMessage msg)
        Set the message slot of this event.
        Parameters:
        msg - The ACL message that was posted to the receiver agent message queue.
      • getMessage

        public ACLMessage getMessage()
        Retrieve the value of the message slot of this event, containing the ACL message that was posted to the receiver agent message queue.
        Returns:
        The value of the message slot, or null if no value was set.
      • setReceiver

        public void setReceiver​(AID id)
        Set the receiver slot of this event.
        Parameters:
        id - The agent identifier of the agent owning the message queue the message was posted to.
      • getReceiver

        public AID getReceiver()
        Retrieve the value of the receiver slot of this event, containing the agent identifier of the agent owning the message queue the message was posted to.
        Returns:
        The value of the receiver slot, or null if no value was set.