Agent System POND 1.0 (1.7.2000)

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.
 
Fields inherited from class PkgAgentSystem.Messaging.Message
addressee, convTypeID, destConvID, sender, srcConvID
 
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 PkgAgentSystem.Messaging.Message
copy, getAddressee, getConversationTypeID, getDestConversationID, getSender, getSrcConversationID, setDestConversationID, setSrcConversationID
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

protected String cause
An optional string containing the reason for declining.
Constructor Detail

DeclineMessage

public DeclineMessage(AgentIdentity sender,
                      AgentIdentity addressee,
                      long convTypeID,
                      long srcConvID,
                      long destConvID)
Creates a new DeclineMessage
Parameters:
sender - the sender of the message
addressee - the recipient of the message
convTypeID - type of the conversation
srcConvID - identifying number of our conversation
destConvID - 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 declining
sender - the sender of the message
addressee - the recipient of the message
convTypeID - type of the conversation
srcConvID - identifying number of our conversation
destConvID - 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 declining
msg - the message whichs offer is declined
See Also:
Message
Method Detail

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

Agent System POND 1.0 (1.7.2000)

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.