PkgAgentSystem.Messaging
Class DeclineMessage
java.lang.Object
|
+--PkgAgentSystem.Messaging.Message
|
+--PkgAgentSystem.Messaging.DeclineMessage
- public class DeclineMessage
- extends Message
A message to signal that an offer, proposal, ... is declined.
Difference to RejectMessage
: Decline is a polite message that the agent is unable or unwilling
to do something.
E. g. Use decline when not able to do something or just not want and reject, if authentication failed.
It may contain a string detailing the cause.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
AcceptMessage
, Serialized Form
Field Summary |
protected String |
cause
An optional string containing the reason for declining. |
Constructor Summary |
DeclineMessage(AgentIdentity sender,
AgentIdentity addressee,
long convTypeID,
long srcConvID,
long destConvID)
Creates a new DeclineMessage |
DeclineMessage(Message msg)
Creates a new DeclineMessage |
DeclineMessage(String cause,
AgentIdentity sender,
AgentIdentity addressee,
long convTypeID,
long srcConvID,
long destConvID)
Creates a new DeclineMessage |
DeclineMessage(String cause,
Message msg)
Creates a new DeclineMessage |
Method Summary |
String |
getCause()
Retrieves the cause for declining (might be null ). |
String |
toString()
Returns a String representation with the value "Declining". |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
cause
protected String cause
- An optional string containing the reason for declining.
DeclineMessage
public DeclineMessage(AgentIdentity sender,
AgentIdentity addressee,
long convTypeID,
long srcConvID,
long destConvID)
- Creates a new
DeclineMessage
- Parameters:
sender
- the sender of the messageaddressee
- the recipient of the messageconvTypeID
- type of the conversationsrcConvID
- identifying number of our conversationdestConvID
- identifying number of the remote conversation- See Also:
AgentIdentity
,
Message
DeclineMessage
public DeclineMessage(String cause,
AgentIdentity sender,
AgentIdentity addressee,
long convTypeID,
long srcConvID,
long destConvID)
- Creates a new
DeclineMessage
- Parameters:
cause
- the cause for decliningsender
- the sender of the messageaddressee
- the recipient of the messageconvTypeID
- type of the conversationsrcConvID
- identifying number of our conversationdestConvID
- identifying number of the remote conversation- See Also:
AgentIdentity
,
Message
DeclineMessage
public DeclineMessage(Message msg)
- Creates a new
DeclineMessage
- Parameters:
msg
- the message whichs offer is declined- See Also:
Message
DeclineMessage
public DeclineMessage(String cause,
Message msg)
- Creates a new
DeclineMessage
- Parameters:
cause
- the cause for decliningmsg
- the message whichs offer is declined- See Also:
Message
toString
public String toString()
- Returns a
String
representation with the value "Declining".
- Returns:
- always "Declining"
- Overrides:
- toString in class Message
getCause
public String getCause()
- Retrieves the cause for declining (might be
null
).
- Returns:
- the string containing the reason for declining or
null
if non provided
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.