Class ACLMessage

    • Constructor Detail

      • ACLMessage

        public ACLMessage()
        Default constructor. A default constructor is necessaty for JADE ontological classes.
    • Method Detail

      • setEnvelope

        public void setEnvelope​(Envelope e)
        Set the message envelope.
        Parameters:
        e - The transport-level envelope to attach to this ACL message.
      • getEnvelope

        public Envelope getEnvelope()
        Retrieve the message envelope.
        Returns:
        The transport-level envelope attached to this ACL message, or null if no envelope was set.
      • setAclRepresentation

        public void setAclRepresentation​(String r)
        Set the representation of the message payload.
        Parameters:
        r - The name of the representation expressing the message payload.
      • getAclRepresentation

        public String getAclRepresentation()
        Retrieve the representation of the message payload.
        Returns:
        The ACL representation of the message.
      • setPayload

        public void setPayload​(String p)
        Set the payload (i.e. the speech act level part) of this ACL message.
        Parameters:
        p - A string containing the encoding of the payload according to a concrete ACL representaiton.
      • getPayload

        public String getPayload()
        Retrieve the payload (i.e. the speech act level part) of this ACL message.
        Returns:
        A string containing the encoding of the payload according to a concrete ACL representation.