net.sourceforge.jasa.market.rules
Class ProbabilisticClearingCondition
java.lang.Object
java.util.Observable
net.sourceforge.jasa.market.rules.MarketClearingCondition
net.sourceforge.jasa.market.rules.RoundClearingCondition
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.
-
-
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 |
P_THRESHOLD
public static final java.lang.String P_THRESHOLD
- See Also:
- Constant Field Values
ProbabilisticClearingCondition
public ProbabilisticClearingCondition(AbstractDistribution distribution)
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