edu.cuny.cat.market.accepting
Class StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker
java.lang.Object
  
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
 
            | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
dist
protected edu.cuny.math.dist.CumulativeDistribution dist
updated
protected boolean updated
isAsk
protected boolean isAsk
value
protected double value
StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker
public StandingAverageBeatingAcceptingPolicy.ShoutAverageTracker(boolean isAsk)
reset
public void reset()
 
isUpdated
public boolean isUpdated()
 
setUpdated
public void setUpdated(boolean updated)
 
getValue
public double getValue()
 
update
protected void update()