Package jade.domain.introspection
Class SentMessage
- java.lang.Object
-
- jade.domain.introspection.SentMessage
-
- All Implemented Interfaces:
Concept,Term,Event,Serializable,Serializable
public class SentMessage extends Object implements Event
An introspection event, recording the sending 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 SentMessage()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 sent.StringgetName()Retrieve the name of this event.AIDgetReceiver()Retrieve the value of the unicastreceiverslot of this event.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 the unicastreceiverslot 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.
-
setReceiver
public void setReceiver(AID id)
Set the unicastreceiverslot of this event.- Parameters:
id- The agent identifier of the unicast receiver of the sent message.
-
getReceiver
public AID getReceiver()
Retrieve the value of the unicastreceiverslot of this event.- Returns:
- The value of the unicast
receiverslot, ornullif no value was set.
-
setMessage
public void setMessage(ACLMessage msg)
Set themessageslot of this event.- Parameters:
msg- The ACL message that was sent.
-
getMessage
public ACLMessage getMessage()
Retrieve the value of themessageslot of this event, containing the ACL message that was sent.- Returns:
- The value of the
messageslot, ornullif no value was set.
-
-