|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The common methods for messages, both directed messages and broadcasts. Must be separate, otherwise either
Message
or BroadcastMessage
would have to be subclass of the other, leading to
many problems (especially for specialized subtypes, like ebXML messages).
Method Summary | |
boolean |
fromInitiator()
Returns whether this message is from the initiator to the other party/parties or an answer. |
AgentIdentity |
getAddressee()
Returns the identity of the recipient of the message. |
long |
getConversationTypeID()
Returns the ID of the type of conversations handling this message. |
long |
getDestConversationID()
Returns the ID of the conversation at the recipient of the message. |
AgentIdentity |
getSender()
Returns the identity of the sender of the message. |
long |
getSrcConversationID()
Returns the ID of the conversation at the sender of the message. |
void |
setAddressee(AgentIdentity addressee)
Set the addressee of the message. |
void |
setConversationTypeID(long id)
Set the type ID for the conversation. |
void |
setDestConversationID(long id)
Set the ID for the conversation at the destination. |
void |
setFromInitiator(boolean fromInitiator)
Sets whether this message is from the initiator to the other party/parties or an answer. |
void |
setSender(AgentIdentity sender)
Set the sender of the message. |
void |
setSrcConversationID(long id)
Set the ID for the conversation at the sender. |
Method Detail |
public void setSrcConversationID(long id)
id
- the id of the conversation at the sender (may not be 0)public long getSrcConversationID()
public void setDestConversationID(long id)
id
- the id of the conversation at the destination (may not be 0)public long getDestConversationID()
public boolean fromInitiator()
true
if the message is from the initiator to the other party/partiespublic void setFromInitiator(boolean fromInitiator)
fromInitiator
- Shall be true
if the message is from the initiator to the other party/parties, false
otherwisepublic void setConversationTypeID(long id)
id
- the id of the type of the conversation (may not be 0)public long getConversationTypeID()
public void setSender(AgentIdentity sender)
sender
- the sender for the message (may not be null)public AgentIdentity getSender()
public void setAddressee(AgentIdentity addressee)
sender
- the addressee for the message (may not be null)public AgentIdentity getAddressee()
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |