edu.cuny.cat.market.charging
Class MomentumChargingPolicy

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.charging.ChargingPolicy
          extended by edu.cuny.cat.market.charging.AdaptiveChargingPolicy
              extended by 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

momentum_charging

Version:
$Revision: 1.31 $
Author:
Jinzhong Niu

Field Summary
protected  java.util.Map<java.lang.String,java.lang.Double> cumulativeProfits
           
protected  Specialist dailyWinner
           
protected  edu.cuny.event.RichEvent event
           
protected  TraderExploringMonitor exploringMonitor
           
protected  double maxDailyProfit
           
static java.lang.String P_DEF_BASE
           
static java.lang.String P_EXPLORING
           
 
Fields inherited from class edu.cuny.cat.market.charging.AdaptiveChargingPolicy
initialFees, learners, P_LEARNER, P_SCALE, perturbations, scales
 
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
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
MomentumChargingPolicy()
           
 
Method Summary
protected  void dayInitialize()
           
 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()
           
protected  void updateFees()
           
protected  void updateSpecialistProfit(Specialist specialist)
           
 
Methods inherited from class edu.cuny.cat.market.charging.AdaptiveChargingPolicy
initialize
 
Methods inherited from class edu.cuny.cat.market.charging.ChargingPolicy
adjustFees, getFees, getInformationFee, getProfitFee, getRegistrationFee, getShoutFee, getTransactionFee
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
getAuctioneer, setAuctioneer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MomentumChargingPolicy

public MomentumChargingPolicy()
Method Detail

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