edu.gmu.dparker3.sludge
Class PriceRecord
java.lang.Object
edu.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
totalQtyDemanded
protected double totalQtyDemanded
totalQtySupplied
protected double totalQtySupplied
supplyList
protected SupplyList supplyList
demandList
protected java.util.ArrayList demandList
expectedPriceList
protected java.util.ArrayList expectedPriceList
PriceRecord
public PriceRecord()
PriceRecord
public PriceRecord(double reservationPrice,
double qty)
PriceRecord
public PriceRecord(LandCell lc)
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)