|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jade.lang.acl.ACLMessage | +--jade.content.OntoACLMessage
Utility class that allow using an ACLMessage
object
as an ontological agent action.
Field Summary |
Fields inherited from class jade.lang.acl.ACLMessage |
ACCEPT_PROPOSAL, AGREE, CANCEL, CFP, CONFIRM, DISCONFIRM, FAILURE, IGNORE_FAILURE, INFORM, INFORM_IF, INFORM_REF, NOT_UNDERSTOOD, POST_TIME_STAMP, PROPAGATE, PROPOSE, PROXY, QUERY_IF, QUERY_REF, REFUSE, REJECT_PROPOSAL, REQUEST, REQUEST_WHEN, REQUEST_WHENEVER, SUBSCRIBE, TRACE, UNKNOWN |
Constructor Summary | |
OntoACLMessage()
Construct an ontological ACL message whose performative is ACLMessage.NOT_UNDERSTOOD |
|
OntoACLMessage(int performative)
Construct an ontological ACL message with a given performative |
Method Summary | |
void |
addReceiver(AID aid)
This method is redefined so that the receiver AID is automatically wrapped into an OntoAID |
void |
addReplyTo(AID aid)
This method is redefined so that the replyTo AID is automatically wrapped into an OntoAID |
void |
setSender(AID aid)
This method is redefined so that the sender AID is automatically wrapped into an OntoAID |
static OntoACLMessage |
wrap(ACLMessage msg)
Create an ontological ACL message that wraps an existing ACLMessage . |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OntoACLMessage()
public OntoACLMessage(int performative)
performative
- the performative of this ACL message.ACLMessage.ACLMessage(int)
Method Detail |
public static OntoACLMessage wrap(ACLMessage msg)
ACLMessage
.
msg
- the ACLMessage
to 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.public void setSender(AID aid)
setSender
in class ACLMessage
ACLMessage.getSender()
public void addReceiver(AID aid)
addReceiver
in class ACLMessage
aid
- The value to add to the slot value set.public void addReplyTo(AID aid)
addReplyTo
in class ACLMessage
aid
- The value to add to the slot value set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |