net.sourceforge.jasa.market.rules
Class ProbabilisticClearingCondition

java.lang.Object
  extended by java.util.Observable
      extended by net.sourceforge.jasa.market.rules.MarketClearingCondition
          extended by net.sourceforge.jasa.market.rules.RoundClearingCondition
              extended by net.sourceforge.jasa.market.rules.ProbabilisticClearingCondition
All Implemented Interfaces:
MarketEventListener

public class ProbabilisticClearingCondition
extends RoundClearingCondition

The class for expressing whether the market should be cleared or not. For the moment, it presents a continuum between CDA and CH.

 

Field Summary
static java.lang.String P_THRESHOLD
           
 
Constructor Summary
ProbabilisticClearingCondition(AbstractDistribution distribution)
           
 
Method Summary
 void eventOccurred(MarketEvent event)
          by default, clears the market when each round is closing.
 double getThreshold()
           
 void setThreshold(double threshold)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sourceforge.jasa.market.rules.RoundClearingCondition
trigger
 
Methods inherited from class net.sourceforge.jasa.market.rules.MarketClearingCondition
initialise, reset
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_THRESHOLD

public static final java.lang.String P_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

ProbabilisticClearingCondition

public ProbabilisticClearingCondition(AbstractDistribution distribution)
Method Detail

eventOccurred

public void eventOccurred(MarketEvent event)
Description copied from class: RoundClearingCondition
by default, clears the market when each round is closing.

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 RoundClearingCondition