jade.domain.introspection
Class SentMessage

java.lang.Object
  extended by jade.domain.introspection.SentMessage
All Implemented Interfaces:
Concept, Term, Event, java.io.Serializable

public class SentMessage
extends java.lang.Object
implements Event

An introspection event, recording the sending of an ACL message within the platform.

Version:
$Date: 2005-02-16 18:18:28 +0100 (mer, 16 feb 2005) $ $Revision: 5552 $
Author:
Giovanni Rimassa - Universita' di Parma
See Also:
Serialized Form

Field Summary
static java.lang.String NAME
          A string constant for the name of this event.
 
Constructor Summary
SentMessage()
          Default constructor.
 
Method Summary
 ACLMessage getMessage()
          Retrieve the value of the message slot of this event, containing the ACL message that was sent.
 java.lang.String getName()
          Retrieve the name of this event.
 AID getReceiver()
          Retrieve the value of the unicast receiver slot of this event.
 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 unicast 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

NAME

public static final java.lang.String NAME
A string constant for the name of this event.

See Also:
Constant Field Values
Constructor Detail

SentMessage

public SentMessage()
Default constructor. A default constructor is necessary for ontological classes.

Method Detail

getName

public java.lang.String getName()
Retrieve the name of this event.

Specified by:
getName in interface Event
Returns:
A constant value for the event name.

setSender

public void setSender(AID id)
Set the sender slot of this event.

Parameters:
id - The agent identifier of the agent that sent the message.

getSender

public AID getSender()
Retrieve the value of the sender slot of this event, containing the agent identifier of the agent that sent the message.

Returns:
The value of the sender slot, or null if no value was set.

setReceiver

public void setReceiver(AID id)
Set the unicast receiver slot 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 unicast receiver slot of this event.

Returns:
The value of the unicast receiver slot, or null if no value was set.

setMessage

public void setMessage(ACLMessage msg)
Set the message slot of this event.

Parameters:
msg - The ACL message that was sent.

getMessage

public ACLMessage getMessage()
Retrieve the value of the message slot of this event, containing the ACL message that was sent.

Returns:
The value of the message slot, or null if no value was set.