edu.cuny.tac.aa.strategy
Class GenericBiddingStrategy

java.lang.Object
  extended by edu.cuny.tac.aa.GameInfo
      extended by edu.cuny.tac.aa.strategy.BiddingStrategy
          extended by edu.cuny.tac.aa.strategy.GenericBiddingStrategy
All Implemented Interfaces:
edu.cuny.util.Parameterizable

public class GenericBiddingStrategy
extends BiddingStrategy

This implements a generic framework for bidding strategies in AA and a configuration with LinearPricingPolicy, SpecialtyTargetedTypingPolicy, and ValuationBasedSpendingPolicy, was used in AA'10 final.

Version:
$Revision: 1 $
Author:
Jinzhong Niu

Field Summary
static java.lang.String P_PRICING
           
static java.lang.String P_REPORT
           
static java.lang.String P_SPENDING
           
static java.lang.String P_TYPING
           
protected  PricingPolicy pricing
           
protected  edu.cuny.tac.aa.stat.GameReport report
           
protected  SpendingPolicy spending
           
protected  TypingPolicy typing
           
 
Fields inherited from class edu.cuny.tac.aa.strategy.BiddingStrategy
advertiserInfo, bankStatus, bidBundles, constraintEffect, conversionsInCapacityWindow, dailyRecords, day, game, P_DEF_BASE, publisherInfo, queryReport, queryReports, querySpace, retailCatalog, salesReport, salesReports, slotInfo, specialty, startInfo, valueBundles
 
Fields inherited from class edu.cuny.tac.aa.GameInfo
BL, CAPACITY, CLICKS, COMPONENT, COMPONENT_NAMES, CONVERSIONS, COST, CPC, CTR, CVR, DAY_DIFF, DV, ERROR, Formatter, 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
GenericBiddingStrategy()
           
 
Method Summary
protected  void forwardMessage(se.sics.tasim.aw.Message message, BiddingPolicy policy)
           
 void handleQueryReport(edu.umich.eecs.tac.props.QueryReport queryReport)
          Processes an incoming query report.
 void messageReceived(se.sics.tasim.aw.Message message)
           
protected  edu.umich.eecs.tac.props.BidBundle prepareBidBundle(edu.umich.eecs.tac.props.BidBundle valueBundle)
           
 void setup(edu.cuny.util.ParameterDatabase parameters, edu.cuny.util.Parameter base)
           
 void simulationFinished()
           
 void simulationSetup()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cuny.tac.aa.strategy.BiddingStrategy
calculateBidBundle, createDailyRecord, displayDailyReport, displayGameReport, endOfDay, estimateCapacityConstraintEffect, estimateCVR, estimateUSP, estimateValue, estimateValues, getAdvertiserInfo, getBankStatus, getConstraintEffect, getDailyRecords, getDay, getPublisherInfo, getQuerySpace, getRetailCatalog, getSlotInfo, getSpecialty, getStartInfo, handleAdvertiserInfo, handleBankStatus, handlePublisherInfo, handleRetailCatalog, handleSalesReport, handleSimulationStatus, handleSlotInfo, handleStartInfo, isComponentSpecialty, isLastDayBidding, isManufacturerSpecialty, isSpecialty, setAdvertiserInfo, setBankStatus, setConstraintEffect, setDailyRecords, setPublisherInfo, setQuerySpace, setRetailCatalog, setSlotInfo, setSpecialty, setStartInfo
 
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

P_SPENDING

public static final java.lang.String P_SPENDING
See Also:
Constant Field Values

P_TYPING

public static final java.lang.String P_TYPING
See Also:
Constant Field Values

P_PRICING

public static final java.lang.String P_PRICING
See Also:
Constant Field Values

P_REPORT

public static final java.lang.String P_REPORT
See Also:
Constant Field Values

spending

protected SpendingPolicy spending

pricing

protected PricingPolicy pricing

typing

protected TypingPolicy typing

report

protected edu.cuny.tac.aa.stat.GameReport report
Constructor Detail

GenericBiddingStrategy

public GenericBiddingStrategy()
Method Detail

setup

public void setup(edu.cuny.util.ParameterDatabase parameters,
                  edu.cuny.util.Parameter base)
Specified by:
setup in interface edu.cuny.util.Parameterizable
Overrides:
setup in class BiddingStrategy

messageReceived

public void messageReceived(se.sics.tasim.aw.Message message)
Overrides:
messageReceived in class BiddingStrategy

forwardMessage

protected void forwardMessage(se.sics.tasim.aw.Message message,
                              BiddingPolicy policy)

prepareBidBundle

protected edu.umich.eecs.tac.props.BidBundle prepareBidBundle(edu.umich.eecs.tac.props.BidBundle valueBundle)
Specified by:
prepareBidBundle in class BiddingStrategy
Returns:
the bids for the coming day

simulationSetup

public void simulationSetup()
Overrides:
simulationSetup in class BiddingStrategy

simulationFinished

public void simulationFinished()
Overrides:
simulationFinished in class BiddingStrategy

handleQueryReport

public void handleQueryReport(edu.umich.eecs.tac.props.QueryReport queryReport)
Description copied from class: BiddingStrategy
Processes an incoming query report.

Overrides:
handleQueryReport in class BiddingStrategy
Parameters:
queryReport - the daily query report.

toString

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