Package jade.domain.introspection
Class ReceivedMessage
- java.lang.Object
-
- jade.domain.introspection.ReceivedMessage
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class ReceivedMessage extends Object implements Event
An introspection event, recording the reception 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 ReceivedMessage()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 extracted from 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 extracted from.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 extracted from the receiver agent message queue.
-
getMessage
public ACLMessage getMessage()
Retrieve the value of themessageslot of this event, containing the ACL message that was extracted from 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 extracted from.
-
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 extracted from.- Returns:
- The value of the
receiverslot, ornullif no value was set.
-
-