PkgAgentSystem.Messaging
Class MessageReply
java.lang.Object
|
+--PkgAgentSystem.Messaging.Message
|
+--PkgAgentSystem.Messaging.MessageReply
- All Implemented Interfaces:
- Cloneable, MessageType, Serializable
- 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 PkgAgentSystem.Messaging.Message |
copy, fromInitiator, getAddressee, getConversationTypeID, getDestConversationID, getSender, getSrcConversationID, setAddressee, setConversationTypeID, setDestConversationID, setFromInitiator, setSender, setSrcConversationID |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageReply
protected MessageReply(MessageType msg,
AgentIdentity sender,
AgentIdentity addressee,
long convTypeID,
long srcConvID,
long destConvID,
boolean fromInitiator)
- Creates a new message from one agent to another. Should ONLY be used for sending messages WITHOUT using
a conversation.
- Parameters:
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
protected MessageReply(MessageType msg)
- Creates a new message in reply to another one.
- Parameters:
msg
- the message to reply to
getMessage
public MessageType 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.
- Overrides:
toString
in class Message
- Returns:
- string representation of this message
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.