|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjade.domain.introspection.ReceivedMessage
public class ReceivedMessage
An introspection event, recording the reception of an ACL message within the platform.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
A string constant for the name of this event. |
| Constructor Summary | |
|---|---|
ReceivedMessage()
Default constructor. |
|
| Method Summary | |
|---|---|
ACLMessage |
getMessage()
Retrieve the value of the message slot of this
event, containing the ACL message that was extracted from the
receiver agent message queue. |
java.lang.String |
getName()
Retrieve the name of this event. |
AID |
getReceiver()
Retrieve the value of the receiver slot of this
event, containing the agent identifier of the agent owning the
message queue the message was extracted from. |
AID |
getSender()
Retrieve the value of the sender slot of this
event, containing the agent identifier of the agent that sent
the message. |
void |
setMessage(ACLMessage msg)
Set the message slot of this event. |
void |
setReceiver(AID id)
Set the receiver slot of this event. |
void |
setSender(AID id)
Set the sender slot of this event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
| Constructor Detail |
|---|
public ReceivedMessage()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface Eventpublic void setSender(AID id)
sender slot of this event.
id - The agent identifier of the agent that sent the
message.public AID getSender()
sender slot of this
event, containing the agent identifier of the agent that sent
the message.
sender slot, or
null if no value was set.public void setMessage(ACLMessage msg)
message slot of this event.
msg - The ACL message that was extracted from the receiver
agent message queue.public ACLMessage getMessage()
message slot of this
event, containing the ACL message that was extracted from the
receiver agent message queue.
message slot, or
null if no value was set.public void setReceiver(AID id)
receiver slot of this event.
id - The agent identifier of the agent owning the message
queue the message was extracted from.public AID getReceiver()
receiver slot of this
event, containing the agent identifier of the agent owning the
message queue the message was extracted from.
receiver slot, or
null if no value was set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||