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
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 tosender
- 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
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
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.