PkgAgentSystem.Messaging
Class DeclineMessage
java.lang.Object
|
+--PkgAgentSystem.Messaging.Message
|
+--PkgAgentSystem.Messaging.DeclineMessage
- All Implemented Interfaces:
- Cloneable, MessageType, Serializable
- 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. |
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 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 |
cause
protected String cause
- An optional string containing the reason for declining.
DeclineMessage
public DeclineMessage()
- Creates a new
DeclineMessage
- See Also:
AgentIdentity
,
Message
DeclineMessage
public DeclineMessage(String cause)
- Creates a new
DeclineMessage
- Parameters:
cause
- the cause for declining- See Also:
AgentIdentity
,
Message
DeclineMessage
public DeclineMessage(MessageType msg)
- Creates a new
DeclineMessage
- Parameters:
msg
- the message whichs offer is declined- See Also:
Message
DeclineMessage
public DeclineMessage(String cause,
MessageType 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".
- Overrides:
toString
in class Message
- Returns:
- always "Declining"
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 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.