edu.cuny.cat.market.clearing
Class ProbabilisticClearingCondition
java.lang.Object
edu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.clearing.MarketClearingCondition
edu.cuny.cat.market.clearing.RoundClearingCondition
edu.cuny.cat.market.clearing.ProbabilisticClearingCondition
- All Implemented Interfaces:
- AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
public class ProbabilisticClearingCondition
- extends RoundClearingCondition
Enables a market to clear with a probability when a new shout arrives.
Parameters
base.threshold
double [0,1] (1 by default) |
(the probability to clear the auction following the placing of
a shout, the lower end of the range being clearing houses and the higher
being continuous double auctions) |
Default Base
- Version:
- $Revision: 1.22 $
- Author:
- Jinzhong Niu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
P_THRESHOLD
public static final java.lang.String P_THRESHOLD
- See Also:
- Constant Field Values
uniformDistribution
protected cern.jet.random.Uniform uniformDistribution
threshold
protected double threshold
ProbabilisticClearingCondition
public ProbabilisticClearingCondition()
setup
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
edu.cuny.config.param.Parameter base)
- Specified by:
setup
in interface edu.cuny.config.param.Parameterizable
- Overrides:
setup
in class AuctioneerPolicy
eventOccurred
public void eventOccurred(AuctionEvent event)
- Description copied from class:
RoundClearingCondition
- clears the market when each round is closing.
- Specified by:
eventOccurred
in interface AuctionEventListener
- Overrides:
eventOccurred
in class RoundClearingCondition
setThreshold
public void setThreshold(double threshold)
getThreshold
public double getThreshold()
toString
public java.lang.String toString()
- Overrides:
toString
in class AuctioneerPolicy