edu.cuny.tac.aa.policy
Class TruthfulPricingPolicy

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.PricingPolicy
                  extended by edu.cuny.tac.aa.policy.TruthfulPricingPolicy
All Implemented Interfaces:
edu.cuny.util.Parameterizable
Direct Known Subclasses:
LinearPricingPolicy

public class TruthfulPricingPolicy
extends PricingPolicy

A pricing policy that always bids at the valuations.

Version:
$Revision: 1.14 $
Author:
Jinzhong Niu

Field Summary
 
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
TruthfulPricingPolicy()
           
 
Method Summary
protected  double calculatePrice(double value)
          calculates the price to offer based on the given valuation.
 void preparePrices(edu.umich.eecs.tac.props.BidBundle bidBundle, edu.umich.eecs.tac.props.BidBundle valueBundle)
           
 
Methods inherited from class edu.cuny.tac.aa.policy.BiddingPolicy
getStrategy, handleAdvertiserInfo, handleBankStatus, handleQueryReport, handleSalesReport, handleSimulationStatus, handleStartInfo, processDailyRecord, setStrategy, setup, toString
 
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
 

Constructor Detail

TruthfulPricingPolicy

public TruthfulPricingPolicy()
Method Detail

preparePrices

public void preparePrices(edu.umich.eecs.tac.props.BidBundle bidBundle,
                          edu.umich.eecs.tac.props.BidBundle valueBundle)
Specified by:
preparePrices in class PricingPolicy
Parameters:
bidBundle -

calculatePrice

protected double calculatePrice(double value)
calculates the price to offer based on the given valuation. This method can be overridden to implement a greedy pricing policy.

Parameters:
value -
Returns:
the price to bid, same as the value.