edu.cuny.tac.aa.policy
Class ProfitabilityBasedSpendingPolicy

java.lang.Object
  extended by edu.cuny.tac.aa.GameInfo
      extended by edu.cuny.tac.aa.strategy.StrategyModule
          extended by edu.cuny.tac.aa.policy.BiddingPolicy
              extended by edu.cuny.tac.aa.policy.SpendingPolicy
                  extended by edu.cuny.tac.aa.policy.FixedSpendingPolicy
                      extended by edu.cuny.tac.aa.policy.ValuationBasedSpendingPolicy
                          extended by edu.cuny.tac.aa.policy.CapacityBasedSpendingPolicy
                              extended by edu.cuny.tac.aa.policy.SmoothSpendingPolicy
                                  extended by edu.cuny.tac.aa.policy.ProfitabilityBasedSpendingPolicy
All Implemented Interfaces:
edu.cuny.util.Parameterizable

public class ProfitabilityBasedSpendingPolicy
extends SmoothSpendingPolicy

A spending policy that imposes a fixed daily spending limit, and limits for individual ad auctions based on the profitabilities of bidding in the auctions.

Version:
$Revision: 1.14 $
Author:
Jinzhong Niu

Field Summary
protected  edu.cuny.tac.aa.policy.ProfitabilityBasedSpendingPolicy.SlidingData slidingData
           
 
Fields inherited from class edu.cuny.tac.aa.policy.SmoothSpendingPolicy
alpha, daysToWait, P_ALPHA, P_WAITING, startDay, waitingDays, windowLen
 
Fields inherited from class edu.cuny.tac.aa.policy.CapacityBasedSpendingPolicy
hRatio, lRatio, P_HRATIO, P_LRATIO
 
Fields inherited from class edu.cuny.tac.aa.policy.ValuationBasedSpendingPolicy
boostRate, high, low, P_BOOSTRATE, P_HIGH, P_LOW
 
Fields inherited from class edu.cuny.tac.aa.policy.FixedSpendingPolicy
limit, P_LIMIT
 
Fields inherited from class edu.cuny.tac.aa.policy.BiddingPolicy
Formatter, strategy
 
Fields inherited from class edu.cuny.tac.aa.GameInfo
BL, CAPACITY, CLICKS, COMPONENT, COMPONENT_NAMES, CONVERSIONS, COST, CPC, CTR, CVR, DAY_DIFF, DV, ERROR, GAME_LENGTH, HIGH_CAPACITY, IMPRESSIONS, INCOME, INDIV_POPULATION_SIZE, LIMIT, LOW_CAPACITY, MANUFACTURER, MANUFACTURER_NAMES, MED_CAPACITY, NUM_OF_COMPONENTS, NUM_OF_MANUFACTURERS, NUM_OF_PRODUCTS, NUM_OF_USER_STAETS, P_AA, POSITION, PR_BST_NStoIS, PR_BST_NStoNS, PR_BURST, PR_F0toF0, PR_F0toF1, PR_F0toNS, PR_F1toF1, PR_F1toF2, PR_F1toNS, PR_F2toF2, PR_F2toNS, PR_IStoF0, PR_IStoF1, PR_IStoF2, PR_IStoIS, PR_IStoNS, PR_STD_NStoIS, PR_STD_NStoNS, PR_TtoNS, PR_TtoT, PROFIT_RATE, PROFIT_UNIT_RATE, PROMOTED, PROMOTED_IMPRESSIONS, REGULAR, REGULAR_IMPRESSIONS, REVENUE, USER_STATE_NAMES, USP
 
Constructor Summary
ProfitabilityBasedSpendingPolicy()
           
 
Method Summary
 void handleAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
           
protected  void prepareData()
           
 void prepareSpendingLimits(edu.umich.eecs.tac.props.BidBundle bidBundle, edu.umich.eecs.tac.props.BidBundle valueBundle)
          sets the spending limits in the bid bundle.
 java.lang.String toString()
           
 
Methods inherited from class edu.cuny.tac.aa.policy.SmoothSpendingPolicy
adjustBaseLimit, setup
 
Methods inherited from class edu.cuny.tac.aa.policy.CapacityBasedSpendingPolicy
calculateLimit
 
Methods inherited from class edu.cuny.tac.aa.policy.FixedSpendingPolicy
getLimit, setLimit
 
Methods inherited from class edu.cuny.tac.aa.policy.BiddingPolicy
getStrategy, handleBankStatus, handleQueryReport, handleSalesReport, handleSimulationStatus, handleStartInfo, processDailyRecord, setStrategy
 
Methods inherited from class edu.cuny.tac.aa.GameInfo
isHighCapacity, isLowCapacity, isMedCapacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

slidingData

protected edu.cuny.tac.aa.policy.ProfitabilityBasedSpendingPolicy.SlidingData slidingData
Constructor Detail

ProfitabilityBasedSpendingPolicy

public ProfitabilityBasedSpendingPolicy()
Method Detail

handleAdvertiserInfo

public void handleAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
Overrides:
handleAdvertiserInfo in class SmoothSpendingPolicy

prepareSpendingLimits

public void prepareSpendingLimits(edu.umich.eecs.tac.props.BidBundle bidBundle,
                                  edu.umich.eecs.tac.props.BidBundle valueBundle)
Description copied from class: SpendingPolicy
sets the spending limits in the bid bundle.

Overrides:
prepareSpendingLimits in class SmoothSpendingPolicy

prepareData

protected void prepareData()

toString

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