Package jade.content

Class OntoACLMessage

    • Constructor Detail

      • OntoACLMessage

        public OntoACLMessage()
        Construct an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD
      • OntoACLMessage

        public OntoACLMessage​(int performative)
        Construct an ontological ACL message with a given performative
        Parameters:
        performative - the performative of this ACL message.
        See Also:
        ACLMessage(int)
    • Method Detail

      • wrap

        public static OntoACLMessage wrap​(ACLMessage msg)
        Create an ontological ACL message that wraps an existing ACLMessage.
        Parameters:
        msg - the ACLMessageto be wrapped. If msg is already an ontological ACL message no new object is created and msg is returned with the sender and receivers properly wrapped if necessary.
      • addReceiver

        public void addReceiver​(AID aid)
        This method is redefined so that the receiver AID is automatically wrapped into an OntoAID
        Overrides:
        addReceiver in class ACLMessage
        Parameters:
        aid - The value to add to the slot value set.
      • addReplyTo

        public void addReplyTo​(AID aid)
        This method is redefined so that the replyTo AID is automatically wrapped into an OntoAID
        Overrides:
        addReplyTo in class ACLMessage
        Parameters:
        aid - The value to add to the slot value set.