marketplace
Class BuySellMessage

java.lang.Object
  |
  +--marketplace.BuySellMessage

public class BuySellMessage
extends java.lang.Object

The BuySellMessage class implements a KQML-like message for the agents in the marketplace application.


Field Summary
protected  java.lang.String content
           
protected  java.lang.String inReplyTo
           
protected  java.lang.String language
           
protected  java.lang.String ontology
           
protected  java.lang.String performative
           
protected  java.lang.String receiver
           
protected  java.lang.String replyWith
           
protected  java.lang.String sender
           
 
Constructor Summary
(package private) BuySellMessage(java.lang.String Performative, java.lang.String Content, java.lang.String InReplyTo, java.lang.String Receiver, java.lang.String ReplyWith, java.lang.String Sender)
          Creates a BuySellMessage object with the given parameters.
(package private) BuySellMessage(java.lang.String Performative, java.lang.String Content, java.lang.String InReplyTo, java.lang.String Language, java.lang.String Ontology, java.lang.String Receiver, java.lang.String ReplyWith, java.lang.String Sender)
          Creates a BuySellMessage object with the given parameters.
 
Method Summary
 void display()
          Displays the information contained in the message.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

performative

protected java.lang.String performative

content

protected java.lang.String content

inReplyTo

protected java.lang.String inReplyTo

language

protected java.lang.String language

ontology

protected java.lang.String ontology

receiver

protected java.lang.String receiver

replyWith

protected java.lang.String replyWith

sender

protected java.lang.String sender
Constructor Detail

BuySellMessage

BuySellMessage(java.lang.String Performative,
               java.lang.String Content,
               java.lang.String InReplyTo,
               java.lang.String Language,
               java.lang.String Ontology,
               java.lang.String Receiver,
               java.lang.String ReplyWith,
               java.lang.String Sender)
Creates a BuySellMessage object with the given parameters.
Parameters:
Performative - the String object for the performative
Content - the String object for the content
InReplyTo - the String object used when replying
Language - the String object for the language used in the messages
Ontology - the String object for the ontology used in the messages
Receiver - the String object that represents the receiver
ReplyWith - the String object used when replying
Sender - the String object that represents the sender

BuySellMessage

BuySellMessage(java.lang.String Performative,
               java.lang.String Content,
               java.lang.String InReplyTo,
               java.lang.String Receiver,
               java.lang.String ReplyWith,
               java.lang.String Sender)
Creates a BuySellMessage object with the given parameters.
Parameters:
Performative - the String object for the performative
Content - the String object for the content
InReplyTo - the String object used when replying
Receiver - the String object that represents the receiver
ReplyWith - the String object used when replying
Sender - the String object that represents the sender
Method Detail

display

public void display()
Displays the information contained in the message.