Class MessageNegotiate

java.lang.Object
  |
  +--Message
        |
        +--MessageNegotiate

public class MessageNegotiate
extends Message


Field Summary
static int BUY_OBJECT
           
static int INFO_NEXT_DAY
           
static int PRICE_ANSWER
           
static int PRICE_QUERY
           
 
Constructor Summary
MessageNegotiate(Agent anAgentFrom, Agent anAgentTo, double[] aPrice)
           
MessageNegotiate(Agent anAgentFrom, Agent anAgentTo, int anIndex)
           
MessageNegotiate(Agent anAgentFrom, Base aBaseTo)
           
MessageNegotiate(Agent anAgentFrom, int aFunction, java.lang.String aMessage)
           
 
Method Summary
 int getFunction()
           
 int getIndex()
           
 double[] getPrices()
           
 
Methods inherited from class Message
deliver, getAgentFrom, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRICE_QUERY

public static final int PRICE_QUERY

PRICE_ANSWER

public static final int PRICE_ANSWER

BUY_OBJECT

public static final int BUY_OBJECT

INFO_NEXT_DAY

public static final int INFO_NEXT_DAY
Constructor Detail

MessageNegotiate

public MessageNegotiate(Agent anAgentFrom,
                        int aFunction,
                        java.lang.String aMessage)

MessageNegotiate

public MessageNegotiate(Agent anAgentFrom,
                        Base aBaseTo)

MessageNegotiate

public MessageNegotiate(Agent anAgentFrom,
                        Agent anAgentTo,
                        double[] aPrice)

MessageNegotiate

public MessageNegotiate(Agent anAgentFrom,
                        Agent anAgentTo,
                        int anIndex)
Method Detail

getFunction

public int getFunction()

getIndex

public int getIndex()

getPrices

public double[] getPrices()