edu.cuny.cat.market.clearing
Class CombiClearingCondition
java.lang.Object
  
edu.cuny.cat.market.AuctioneerPolicy
      
edu.cuny.cat.market.clearing.MarketClearingCondition
          
edu.cuny.cat.market.clearing.CombiClearingCondition
- All Implemented Interfaces: 
 - AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
 
public class CombiClearingCondition
- extends MarketClearingCondition
 
 Combines multiple market clearing conditions and the market is cleared if any
 of the conditions triggers clearing.
 
 
 
 For example, a combination of ProbabilisticClearingCondition and
 RoundClearingCondition can express a continuum between CDA and CH.
 
 
 
 Parameters
 
 
 
 base.n 
 int >= 1 | 
 (the number of different clearing conditions to configure) | 
 
 
 
 base.n 
 name of class, inheriting MarketClearingCondition
  | 
 (the nth clearing condition) | 
 
 
 
- Version:
 
  - $Revision: 1.12 $
 
- Author:
 
  - Jinzhong Niu
 
| 
Field Summary | 
static java.lang.String | 
P_NUM
 
            | 
 
 
 
 
| 
Method Summary | 
 void | 
eventOccurred(AuctionEvent event)
 
            | 
 void | 
reset()
 
          resets the state to be the same as the policy is created and initialized. | 
 void | 
setup(edu.cuny.config.param.ParameterDatabase parameters,
      edu.cuny.config.param.Parameter base)
 
            | 
 java.lang.String | 
toString()
 
            | 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
P_NUM
public static final java.lang.String P_NUM
- See Also:
 - Constant Field Values
 
CombiClearingCondition
public CombiClearingCondition()
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
 
 
reset
public void reset()
- Description copied from class: 
AuctioneerPolicy 
- resets the state to be the same as the policy is created and initialized.
- Specified by:
 reset in interface edu.cuny.obj.Resetable- Overrides:
 reset in class AuctioneerPolicy
 
 
 
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
 eventOccurred in interface AuctionEventListener- Overrides:
 eventOccurred in class AuctioneerPolicy
 
 
toString
public java.lang.String toString()
- Overrides:
 toString in class AuctioneerPolicy