edu.cuny.cat.market.accepting
Class StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker

java.lang.Object
  extended by edu.cuny.cat.market.accepting.StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker
Enclosing class:
StandingAverageBeatingAcceptingPolicy

protected class StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker
extends java.lang.Object

tracks the average price of shouts on one side of the market. It updates in a lazy way by using a flag.


Field Summary
protected  edu.cuny.math.dist.CumulativeDistribution dist
           
protected  boolean isAsk
           
protected  boolean updated
           
protected  double value
           
 
Constructor Summary
StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker(boolean isAsk)
           
 
Method Summary
 double getValue()
           
 boolean isUpdated()
           
 void reset()
           
 void setUpdated(boolean updated)
           
protected  void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dist

protected edu.cuny.math.dist.CumulativeDistribution dist

updated

protected boolean updated

isAsk

protected boolean isAsk

value

protected double value
Constructor Detail

StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker

public StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker(boolean isAsk)
Method Detail

reset

public void reset()

isUpdated

public boolean isUpdated()

setUpdated

public void setUpdated(boolean updated)

getValue

public double getValue()

update

protected void update()