Agent System POND 1.0 (1.7.2000)

PkgAgentSystem.Messaging
Class MessageReply

java.lang.Object
  |
  +--PkgAgentSystem.Messaging.Message
        |
        +--PkgAgentSystem.Messaging.MessageReply
Direct Known Subclasses:
ReplyToLateMessage, UnknownConversationMessage, UnknownConversationTypeMessage

public class MessageReply
extends Message

A message containing another message.

Version:
1.0, 1.7.2000
Author:
Michael Sonntag
See Also:
Serialized Form

Fields inherited from class PkgAgentSystem.Messaging.Message
addressee, convTypeID, destConvID, sender, srcConvID
 
Constructor Summary
  MessageReply(Message msg)
          Creates a reply to a message.
protected MessageReply(Message msg, AgentIdentity sender, AgentIdentity addressee, long convTypeID, long srcConvID, long destConvID)
          Creates a new message in reply to another one.
 
Method Summary
 Message getMessage()
          Returns the contained message.
 String toString()
          Returns a string representation of this message.
 
Methods inherited from class PkgAgentSystem.Messaging.Message
copy, getAddressee, getConversationTypeID, getDestConversationID, getSender, getSrcConversationID, setDestConversationID, setSrcConversationID
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageReply

protected MessageReply(Message msg,
                       AgentIdentity sender,
                       AgentIdentity addressee,
                       long convTypeID,
                       long srcConvID,
                       long destConvID)
Creates a new message in reply to another one.
Parameters:
msg - the message to reply to
sender - the identity of the sender. Must be provided.
addressee - the identity of the recipient. Must be provided.
convTypeID - ID of the type of the conversation. Must not be 0.
srcConvID - ID of the conversation at the source. May be 0 for replies to unknown conversations, ... (there is no conversation with those).
destConvID - ID of the conversation at the recipient. May be 0 for initial messages (starting a conversation) and broadcasts.

MessageReply

public MessageReply(Message msg)
Creates a reply to a message.
Parameters:
msg - the message to reply to
Method Detail

getMessage

public Message getMessage()
Returns the contained message.
Returns:
the contained message

toString

public String toString()
Returns a string representation of this message. The representation included the contained message.
Returns:
string representation of this message
Overrides:
toString in class Message

Agent System POND 1.0 (1.7.2000)

Submit a bug

Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.