edu.gmu.dparker3.sludge
Class PriceDatabase

java.lang.Object
  extended byedu.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
           
 
Constructor Summary
PriceDatabase()
           
PriceDatabase(Mediator m)
           
 
Method Summary
 void addRecord(double resPrice, double qty)
           
 void addRecord(LandCell lc)
           
 void determineExpectedPrice()
           
 java.util.ArrayList getDemandList()
           
 double getExpectedPrice()
           
 PriceRecord getPriceRecord()
           
 SupplyList getSupplyList()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 void updateCurrentSupply(double resPrice, double qty)
           
 void updateCurrentSupply(LandCell lc)
           
 void updateSupplyInfo(double resPrice, double qty)
           
 void updateSupplyInfo(LandCell lc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

database

protected java.util.ArrayList database
Constructor Detail

PriceDatabase

public PriceDatabase()

PriceDatabase

public PriceDatabase(Mediator m)
Method Detail

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)