net.sourceforge.jasa.market.rules
Class RoundClearingCondition

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

public class RoundClearingCondition
extends MarketClearingCondition

The interface for expressing the condition of clearing the current market. Whenever, it's time to do so, notifyObservers() is called.

 

Constructor Summary
RoundClearingCondition()
           
 
Method Summary
 void eventOccurred(MarketEvent event)
          by default, clears the market when each round is closing.
 java.lang.String toString()
           
protected  void 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
 

Constructor Detail

RoundClearingCondition

public RoundClearingCondition()
Method Detail

eventOccurred

public void eventOccurred(MarketEvent event)
by default, clears the market when each round is closing.

Overrides:
eventOccurred in class MarketClearingCondition

trigger

protected void trigger()

toString

public java.lang.String toString()
Overrides:
toString in class MarketClearingCondition