Class SentMessage

    • Constructor Detail

      • SentMessage

        public SentMessage()
        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.
      • setReceiver

        public void setReceiver​(AID id)
        Set the unicast receiver slot of this event.
        Parameters:
        id - The agent identifier of the unicast receiver of the sent message.
      • getReceiver

        public AID getReceiver()
        Retrieve the value of the unicast receiver slot of this event.
        Returns:
        The value of the unicast receiver 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 sent.
      • getMessage

        public ACLMessage getMessage()
        Retrieve the value of the message slot of this event, containing the ACL message that was sent.
        Returns:
        The value of the message slot, or null if no value was set.