Package jade.domain.introspection
Class PostedMessage
- java.lang.Object
-
- jade.domain.introspection.PostedMessage
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class PostedMessage extends Object implements Event
An introspection event, recording the posting of an ACL message within the platform.- Version:
- $Date$ $Revision$
- Author:
- Giovanni Rimassa - Universita' di Parma
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PostedMessage()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ACLMessagegetMessage()Retrieve the value of themessageslot of this event, containing the ACL message that was posted to the receiver agent message queue.StringgetName()Retrieve the name of this event.AIDgetReceiver()Retrieve the value of thereceiverslot of this event, containing the agent identifier of the agent owning the message queue the message was posted to.AIDgetSender()Retrieve the value of thesenderslot of this event, containing the agent identifier of the agent that sent the message.voidsetMessage(ACLMessage msg)Set themessageslot of this event.voidsetReceiver(AID id)Set thereceiverslot of this event.voidsetSender(AID id)Set thesenderslot of this event.
-
-
-
Field Detail
-
NAME
public static final String NAME
A string constant for the name of this event.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Retrieve the name of this event.
-
setSender
public void setSender(AID id)
Set thesenderslot of this event.- Parameters:
id- The agent identifier of the agent that sent the message.
-
getSender
public AID getSender()
Retrieve the value of thesenderslot of this event, containing the agent identifier of the agent that sent the message.- Returns:
- The value of the
senderslot, ornullif no value was set.
-
setMessage
public void setMessage(ACLMessage msg)
Set themessageslot of this event.- Parameters:
msg- The ACL message that was posted to the receiver agent message queue.
-
getMessage
public ACLMessage getMessage()
Retrieve the value of themessageslot of this event, containing the ACL message that was posted to the receiver agent message queue.- Returns:
- The value of the
messageslot, ornullif no value was set.
-
setReceiver
public void setReceiver(AID id)
Set thereceiverslot of this event.- Parameters:
id- The agent identifier of the agent owning the message queue the message was posted to.
-
getReceiver
public AID getReceiver()
Retrieve the value of thereceiverslot of this event, containing the agent identifier of the agent owning the message queue the message was posted to.- Returns:
- The value of the
receiverslot, ornullif no value was set.
-
-