|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cuny.tac.aa.GameInfo
edu.cuny.tac.aa.strategy.BiddingStrategy
public abstract class BiddingStrategy
Field Summary | |
---|---|
protected edu.umich.eecs.tac.props.AdvertiserInfo |
advertiserInfo
The basic advertiser specific information. |
protected edu.umich.eecs.tac.props.BankStatus |
bankStatus
daily bank status. |
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.BidBundle> |
bidBundles
|
protected double |
constraintEffect
|
protected edu.cuny.util.FixedLengthQueue |
conversionsInCapacityWindow
|
protected java.util.Map<java.lang.Integer,DailyRecord> |
dailyRecords
|
protected int |
day
the game day |
protected int |
game
the game id |
protected static org.apache.log4j.Logger |
logger
|
static java.lang.String |
P_DEF_BASE
|
protected edu.umich.eecs.tac.props.PublisherInfo |
publisherInfo
The basic publisher information. |
protected edu.umich.eecs.tac.props.QueryReport |
queryReport
daily query report. |
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.QueryReport> |
queryReports
The map contains all of the daily query reports
delivered to the agent. |
protected java.util.Set<edu.umich.eecs.tac.props.Query> |
querySpace
a set of all the possible queries made available in the retail catalog . |
protected edu.umich.eecs.tac.props.RetailCatalog |
retailCatalog
The retail catalog. |
protected edu.umich.eecs.tac.props.SalesReport |
salesReport
daily sales report. |
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.SalesReport> |
salesReports
The list contains all of the sales report delivered to
the agent. |
protected edu.umich.eecs.tac.props.SlotInfo |
slotInfo
Basic auction slot information. |
protected edu.umich.eecs.tac.props.Product |
specialty
The product on which the advertiser specializes. |
protected se.sics.tasim.props.StartInfo |
startInfo
Certain info about the game. |
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.BidBundle> |
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 | |
---|---|
BiddingStrategy()
|
Method Summary | |
---|---|
edu.umich.eecs.tac.props.BidBundle |
calculateBidBundle()
|
protected DailyRecord |
createDailyRecord(int recordDay,
edu.umich.eecs.tac.props.SalesReport salesReport,
edu.umich.eecs.tac.props.QueryReport queryReport,
edu.umich.eecs.tac.props.BidBundle bidBundle,
edu.umich.eecs.tac.props.BidBundle valueBundle)
|
protected void |
displayDailyReport()
display sales and query reports for day n-1. |
protected void |
displayGameReport()
display sales and query reports for the whole game |
void |
endOfDay()
this method is called by the bidding agent to notify the end of a day. |
double |
estimateCapacityConstraintEffect()
|
double |
estimateCVR(edu.umich.eecs.tac.props.Query query,
double constraintEffect)
estimates the conversion rate of a click caused by the query. |
double |
estimateUSP(edu.umich.eecs.tac.props.Query query)
estimates the unit sales revenue of a conversion caused by the query. |
double |
estimateValue(edu.umich.eecs.tac.props.Query query,
double constraintEffect)
estimates the value of the query with a given distribution capacity constraint effect. |
edu.umich.eecs.tac.props.BidBundle |
estimateValues()
|
edu.umich.eecs.tac.props.AdvertiserInfo |
getAdvertiserInfo()
|
edu.umich.eecs.tac.props.BankStatus |
getBankStatus()
|
double |
getConstraintEffect()
|
java.util.Map<java.lang.Integer,DailyRecord> |
getDailyRecords()
|
int |
getDay()
|
edu.umich.eecs.tac.props.PublisherInfo |
getPublisherInfo()
|
java.util.Set<edu.umich.eecs.tac.props.Query> |
getQuerySpace()
|
edu.umich.eecs.tac.props.RetailCatalog |
getRetailCatalog()
|
edu.umich.eecs.tac.props.SlotInfo |
getSlotInfo()
|
edu.umich.eecs.tac.props.Product |
getSpecialty()
|
se.sics.tasim.props.StartInfo |
getStartInfo()
|
void |
handleAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
Processes the advertiser information. |
void |
handleBankStatus(edu.umich.eecs.tac.props.BankStatus bankStatus)
|
void |
handlePublisherInfo(edu.umich.eecs.tac.props.PublisherInfo publisherInfo)
Processes the publisher information. |
void |
handleQueryReport(edu.umich.eecs.tac.props.QueryReport queryReport)
Processes an incoming query report. |
void |
handleRetailCatalog(edu.umich.eecs.tac.props.RetailCatalog retailCatalog)
Processes the retail catalog and initialize the query space. |
void |
handleSalesReport(edu.umich.eecs.tac.props.SalesReport salesReport)
Processes an incoming sales report. |
void |
handleSimulationStatus(se.sics.tasim.props.SimulationStatus simulationStatus)
Processes a simulation status notification. |
void |
handleSlotInfo(edu.umich.eecs.tac.props.SlotInfo slotInfo)
Processrs the slot information. |
void |
handleStartInfo(se.sics.tasim.props.StartInfo startInfo)
Processes the start information, which indicates the start of a game. |
boolean |
isComponentSpecialty(edu.umich.eecs.tac.props.Query query)
|
boolean |
isLastDayBidding()
|
boolean |
isManufacturerSpecialty(edu.umich.eecs.tac.props.Query query)
|
boolean |
isSpecialty(edu.umich.eecs.tac.props.Query query)
|
void |
messageReceived(se.sics.tasim.aw.Message message)
|
protected abstract edu.umich.eecs.tac.props.BidBundle |
prepareBidBundle(edu.umich.eecs.tac.props.BidBundle valueBundle)
|
void |
setAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
|
void |
setBankStatus(edu.umich.eecs.tac.props.BankStatus bankStatus)
|
void |
setConstraintEffect(double constraintEffect)
|
void |
setDailyRecords(java.util.Map<java.lang.Integer,DailyRecord> dailyRecords)
|
void |
setPublisherInfo(edu.umich.eecs.tac.props.PublisherInfo publisherInfo)
|
void |
setQuerySpace(java.util.Set<edu.umich.eecs.tac.props.Query> querySpace)
|
void |
setRetailCatalog(edu.umich.eecs.tac.props.RetailCatalog retailCatalog)
|
void |
setSlotInfo(edu.umich.eecs.tac.props.SlotInfo slotInfo)
|
void |
setSpecialty(edu.umich.eecs.tac.props.Product specialty)
|
void |
setStartInfo(se.sics.tasim.props.StartInfo startInfo)
|
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.GameInfo |
---|
isHighCapacity, isLowCapacity, isMedCapacity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger logger
public static final java.lang.String P_DEF_BASE
protected se.sics.tasim.props.StartInfo startInfo
protected edu.umich.eecs.tac.props.SlotInfo slotInfo
SlotInfo
contains
SlotInfo
at the beginning of the game
or during recovery. This information is identical for all auctions over all
query classes.
protected edu.umich.eecs.tac.props.RetailCatalog retailCatalog
RetailCatalog
contains
RetailCatalog
at the beginning of the
game or during recovery.
protected edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo
AdvertiserInfo
contains
AdvertiserInfo
at the beginning of the
game or during recovery.
protected edu.umich.eecs.tac.props.PublisherInfo publisherInfo
PublisherInfo
contains
PublisherInfo
at the beginning of the
game or during recovery.
protected edu.umich.eecs.tac.props.BankStatus bankStatus
protected edu.umich.eecs.tac.props.SalesReport salesReport
protected edu.umich.eecs.tac.props.QueryReport queryReport
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.SalesReport> salesReports
sales report
delivered to
the agent. Each sales report
contains the conversions
and sales revenue accrued by the agent for each query class during the
period.
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.QueryReport> queryReports
query reports
delivered to the agent. Each query report
contains the
impressions, clicks, cost, average position, and ad displayed by the agent
for each query class during the period as well as the positions and
displayed ads of all advertisers during the period for each query class.
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.BidBundle> bidBundles
protected java.util.Map<java.lang.Integer,edu.umich.eecs.tac.props.BidBundle> valueBundles
protected java.util.Map<java.lang.Integer,DailyRecord> dailyRecords
protected java.util.Set<edu.umich.eecs.tac.props.Query> querySpace
retail catalog
.
protected edu.umich.eecs.tac.props.Product specialty
protected double constraintEffect
protected int day
protected int game
protected edu.cuny.util.FixedLengthQueue conversionsInCapacityWindow
Constructor Detail |
---|
public BiddingStrategy()
Method Detail |
---|
public void setup(edu.cuny.util.ParameterDatabase parameters, edu.cuny.util.Parameter base)
setup
in interface edu.cuny.util.Parameterizable
public se.sics.tasim.props.StartInfo getStartInfo()
public void setStartInfo(se.sics.tasim.props.StartInfo startInfo)
public edu.umich.eecs.tac.props.SlotInfo getSlotInfo()
public void setSlotInfo(edu.umich.eecs.tac.props.SlotInfo slotInfo)
public edu.umich.eecs.tac.props.RetailCatalog getRetailCatalog()
public void setRetailCatalog(edu.umich.eecs.tac.props.RetailCatalog retailCatalog)
public edu.umich.eecs.tac.props.AdvertiserInfo getAdvertiserInfo()
public void setAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
public edu.umich.eecs.tac.props.PublisherInfo getPublisherInfo()
public void setPublisherInfo(edu.umich.eecs.tac.props.PublisherInfo publisherInfo)
public java.util.Set<edu.umich.eecs.tac.props.Query> getQuerySpace()
public void setQuerySpace(java.util.Set<edu.umich.eecs.tac.props.Query> querySpace)
public edu.umich.eecs.tac.props.BankStatus getBankStatus()
public void setBankStatus(edu.umich.eecs.tac.props.BankStatus bankStatus)
public edu.umich.eecs.tac.props.Product getSpecialty()
public void setSpecialty(edu.umich.eecs.tac.props.Product specialty)
public double getConstraintEffect()
public void setConstraintEffect(double constraintEffect)
public java.util.Map<java.lang.Integer,DailyRecord> getDailyRecords()
public void setDailyRecords(java.util.Map<java.lang.Integer,DailyRecord> dailyRecords)
public int getDay()
public boolean isLastDayBidding()
public void simulationSetup()
public void simulationFinished()
public void messageReceived(se.sics.tasim.aw.Message message)
public void handleStartInfo(se.sics.tasim.props.StartInfo startInfo)
startInfo
- the start information.public void handleSlotInfo(edu.umich.eecs.tac.props.SlotInfo slotInfo)
slotInfo
- the slot information.public void handleRetailCatalog(edu.umich.eecs.tac.props.RetailCatalog retailCatalog)
retailCatalog
- the retail catalog.public void handlePublisherInfo(edu.umich.eecs.tac.props.PublisherInfo publisherInfo)
publisherInfo
- the publisher information.public void handleAdvertiserInfo(edu.umich.eecs.tac.props.AdvertiserInfo advertiserInfo)
advertiserInfo
- the advertiser information.public boolean isSpecialty(edu.umich.eecs.tac.props.Query query)
public boolean isManufacturerSpecialty(edu.umich.eecs.tac.props.Query query)
public boolean isComponentSpecialty(edu.umich.eecs.tac.props.Query query)
public void handleBankStatus(edu.umich.eecs.tac.props.BankStatus bankStatus)
public void handleSalesReport(edu.umich.eecs.tac.props.SalesReport salesReport)
salesReport
- the daily sales report.public void handleQueryReport(edu.umich.eecs.tac.props.QueryReport queryReport)
queryReport
- the daily query report.public void handleSimulationStatus(se.sics.tasim.props.SimulationStatus simulationStatus)
simulation status
notification is sent after the
other daily messages (QueryReport
SalesReport
have been
sent.
simulationStatus
- the daily simulation status.public void endOfDay()
protected DailyRecord createDailyRecord(int recordDay, edu.umich.eecs.tac.props.SalesReport salesReport, edu.umich.eecs.tac.props.QueryReport queryReport, edu.umich.eecs.tac.props.BidBundle bidBundle, edu.umich.eecs.tac.props.BidBundle valueBundle)
protected void displayDailyReport()
protected void displayGameReport()
public edu.umich.eecs.tac.props.BidBundle calculateBidBundle()
protected abstract edu.umich.eecs.tac.props.BidBundle prepareBidBundle(edu.umich.eecs.tac.props.BidBundle valueBundle)
public java.lang.String toString()
toString
in class java.lang.Object
public edu.umich.eecs.tac.props.BidBundle estimateValues()
estimateValue(Query, double)
public double estimateValue(edu.umich.eecs.tac.props.Query query, double constraintEffect)
query
- constraintEffect
-
estimateValues()
public double estimateUSP(edu.umich.eecs.tac.props.Query query)
query
-
public double estimateCVR(edu.umich.eecs.tac.props.Query query, double constraintEffect)
query
- constraintEffect
- E.g., Id, which is used to adjust conversion rate.
public double estimateCapacityConstraintEffect()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |