edu.gmu.dparker3.sludge
Class PriceDatabase
java.lang.Object
edu.gmu.dparker3.sludge.PriceDatabase
- public class PriceDatabase
- extends java.lang.Object
holds the price records for each time step
- Version:
- 1.0
- Author:
- Robert Najlis
|
Field Summary |
protected java.util.ArrayList |
database
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
database
protected java.util.ArrayList database
PriceDatabase
public PriceDatabase()
PriceDatabase
public PriceDatabase(Mediator m)
getExpectedPrice
public double getExpectedPrice()
determineExpectedPrice
public void determineExpectedPrice()
updateSupplyInfo
public void updateSupplyInfo(LandCell lc)
updateSupplyInfo
public void updateSupplyInfo(double resPrice,
double qty)
addRecord
public void addRecord(double resPrice,
double qty)
addRecord
public void addRecord(LandCell lc)
updateCurrentSupply
public void updateCurrentSupply(double resPrice,
double qty)
updateCurrentSupply
public void updateCurrentSupply(LandCell lc)
getSupplyList
public SupplyList getSupplyList()
getDemandList
public java.util.ArrayList getDemandList()
getPriceRecord
public PriceRecord getPriceRecord()
toString
public java.lang.String toString()
main
public static void main(java.lang.String[] args)