edu.gmu.dparker3.sludge
Class PriceRecord

java.lang.Object
  extended byedu.gmu.dparker3.sludge.PriceRecord

public class PriceRecord
extends java.lang.Object

holds Supply Records and a list of Demand break points this can be used to calculate expected price info needed for agents to make their decisions

Version:
1.0
Author:
Robert Najlis

Field Summary
protected  java.util.ArrayList demandList
           
protected  java.util.ArrayList expectedPriceList
           
protected  SupplyList supplyList
           
protected  double totalQtyDemanded
           
protected  double totalQtySupplied
           
 
Constructor Summary
PriceRecord()
           
PriceRecord(double reservationPrice, double qty)
           
PriceRecord(LandCell lc)
           
 
Method Summary
 void calcDemandList()
           
 void determineExpectedPrice()
           
 int findDemandPoint()
           
 void findTotalQtySupplied()
           
 java.util.ArrayList getDemandList()
           
 double getExpectedPrice()
           
 SupplyList getSupplyList()
           
 double getTotalQtyDemanded()
           
 double getTotalQtySupplied()
           
static void main(java.lang.String[] args)
           
 double qtyDemanded2ExpectedPrice(double qty)
           
 double resPrice2QtyDemanded(double resPrice)
           
 java.lang.String toString()
           
 void updateSupplyList(double reservationPrice, double qty)
           
 void updateSupplyList(LandCell lc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

totalQtyDemanded

protected double totalQtyDemanded

totalQtySupplied

protected double totalQtySupplied

supplyList

protected SupplyList supplyList

demandList

protected java.util.ArrayList demandList

expectedPriceList

protected java.util.ArrayList expectedPriceList
Constructor Detail

PriceRecord

public PriceRecord()

PriceRecord

public PriceRecord(double reservationPrice,
                   double qty)

PriceRecord

public PriceRecord(LandCell lc)
Method Detail

getExpectedPrice

public double getExpectedPrice()

determineExpectedPrice

public void determineExpectedPrice()

resPrice2QtyDemanded

public double resPrice2QtyDemanded(double resPrice)

qtyDemanded2ExpectedPrice

public double qtyDemanded2ExpectedPrice(double qty)

findDemandPoint

public int findDemandPoint()

calcDemandList

public void calcDemandList()

findTotalQtySupplied

public void findTotalQtySupplied()

updateSupplyList

public void updateSupplyList(double reservationPrice,
                             double qty)

updateSupplyList

public void updateSupplyList(LandCell lc)

getTotalQtyDemanded

public double getTotalQtyDemanded()

getTotalQtySupplied

public double getTotalQtySupplied()

getSupplyList

public SupplyList getSupplyList()

getDemandList

public java.util.ArrayList getDemandList()

toString

public java.lang.String toString()

main

public static void main(java.lang.String[] args)