edu.cuny.cat.market.clearing
Class ProbabilisticClearingCondition

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.clearing.MarketClearingCondition
          extended by edu.cuny.cat.market.clearing.RoundClearingCondition
              extended by 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

probabilistic_clearing

Version:
$Revision: 1.22 $
Author:
Jinzhong Niu

Field Summary
static java.lang.String P_DEF_BASE
           
static java.lang.String P_THRESHOLD
           
protected  double threshold
           
protected  cern.jet.random.Uniform uniformDistribution
           
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
ProbabilisticClearingCondition()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
          clears the market when each round is closing.
 double getThreshold()
           
 void setThreshold(double threshold)
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cuny.cat.market.clearing.MarketClearingCondition
triggerClearing
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
getAuctioneer, initialize, reset, setAuctioneer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ProbabilisticClearingCondition

public ProbabilisticClearingCondition()
Method Detail

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