edu.cuny.cat.market.charging
Class MomentumChargingPolicy
java.lang.Object
  
edu.cuny.cat.market.AuctioneerPolicy
      
edu.cuny.cat.market.charging.ChargingPolicy
          
edu.cuny.cat.market.charging.AdaptiveChargingPolicy
              
edu.cuny.cat.market.charging.MomentumChargingPolicy
- All Implemented Interfaces: 
 - AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
 
public class MomentumChargingPolicy
- extends AdaptiveChargingPolicy
 
 An adaptive charging policy that learns from charges of the market that made
 the most profit each day. It can also be viewed as a more complicated version
 of BaitAndSwitchChargingPolicy.
 
 
 
 Parameters
 
 
 
 
 base.exploring 
 name of class, implementing TraderExploringMonitor
  | 
 (exploring monitor that decides whether traders are still
 exploring or have converged) | 
 
 
 
 
 
 Default Base
 
 
- Version:
 
  - $Revision: 1.31 $
 
- Author:
 
  - Jinzhong Niu
 
 
 
| Fields inherited from class edu.cuny.cat.market.charging.ChargingPolicy | 
FEE_TYPES, fees, FLAT, FRACTIONAL, INFORMATION_INDEX, MAXES, MINES, P_FEES, PROFIT_INDEX, REGISTRATION_INDEX, SHOUT_INDEX, TRANSACTION_INDEX | 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
 - Constant Field Values
 
P_EXPLORING
public static final java.lang.String P_EXPLORING
- See Also:
 - Constant Field Values
 
exploringMonitor
protected TraderExploringMonitor exploringMonitor
cumulativeProfits
protected final java.util.Map<java.lang.String,java.lang.Double> cumulativeProfits
dailyWinner
protected Specialist dailyWinner
maxDailyProfit
protected double maxDailyProfit
event
protected final edu.cuny.event.RichEvent event
MomentumChargingPolicy
public MomentumChargingPolicy()
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 AdaptiveChargingPolicy
 
 
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 AdaptiveChargingPolicy
 
 
 
dayInitialize
protected void dayInitialize()
 
updateSpecialistProfit
protected void updateSpecialistProfit(Specialist specialist)
 
updateFees
protected void updateFees()
 
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 AdaptiveChargingPolicy