|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.lang.acl.ACLMessage
jade.content.OntoACLMessage
public class OntoACLMessage
Utility class that allow using an ACLMessage object
as an ontological agent action.
| Field Summary |
|---|
| 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 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.public void setSender(AID aid)
setSender in class ACLMessageACLMessage.getSender()public void addReceiver(AID aid)
addReceiver in class ACLMessageaid - The value to add to the slot value set.public void addReplyTo(AID aid)
addReplyTo in class ACLMessageaid - 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 | |||||||||