edu.umich.eecs.tac.props
Class QueryReport.DisplayReport

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractTransportable
      extended by edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking<S>
          extended by edu.umich.eecs.tac.props.AbstractKeyedEntryList<java.lang.String,T>
              extended by edu.umich.eecs.tac.props.AbstractAdvertiserKeyedReportTransportable<QueryReport.DisplayReportEntry>
                  extended by edu.umich.eecs.tac.props.QueryReport.DisplayReport
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.String>, se.sics.isl.transport.Transportable
Enclosing class:
QueryReport

public static class QueryReport.DisplayReport
extends AbstractAdvertiserKeyedReportTransportable<QueryReport.DisplayReportEntry>

Display report contains the positions and displayed ads of all advertisers during the period for each query class.

Author:
Patrick Jordan
See Also:
Serialized Form

Constructor Summary
QueryReport.DisplayReport()
           
 
Method Summary
protected  QueryReport.DisplayReportEntry createEntry(java.lang.String advertiser)
          Creates a QueryReport.DisplayReportEntry keyed with the supplied advertiser.
protected  java.lang.Class entryClass()
          Returns the QueryReport.DisplayReportEntry class.
 Ad getAd(int index)
          Returns the shown ad for the advertiser.
 Ad getAd(java.lang.String advertiser)
          Returns the shown ad for the advertiser.
 double getPosition(int index)
          Returns the average position for the advertiser.
 double getPosition(java.lang.String advertiser)
          Returns the average position for the advertiser.
 void setAd(int index, Ad ad)
          Sets the shown ad for the advertiser.
 void setAd(java.lang.String advertiser, Ad ad)
          Sets the shown ad for the advertiser.
 void setAdAndPosition(int index, Ad ad, double position)
          Sets the shown ad and the average position for the advertiser.
 void setAdAndPosition(java.lang.String advertiser, Ad ad, double position)
          Sets the shown ad and the average position for the advertiser.
 void setPosition(int index, double position)
          Sets the average position for the advertiser.
 void setPosition(java.lang.String advertiser, double position)
          Sets the average position for the advertiser.
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractAdvertiserKeyedReportTransportable
addAdvertiser, containsAdvertiser
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntryList
addKey, containsKey, getEntry, getKey, indexForEntry, iterator, keys
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking
addEntry, afterAddEntry, afterRemoveEntry, beforeAddEntry, beforeRemoveEntry, getEntries, getEntry, readAfterEntries, readBeforeEntries, readWithLock, removeEntry, size, toString, toStringAfterEntries, toStringBeforeEntries, writeAfterEntries, writeBeforeEntries, writeWithLock
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportable
getTransportName, isLocked, lock, lockCheck, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryReport.DisplayReport

public QueryReport.DisplayReport()
Method Detail

createEntry

protected final QueryReport.DisplayReportEntry createEntry(java.lang.String advertiser)
Creates a QueryReport.DisplayReportEntry keyed with the supplied advertiser.

Specified by:
createEntry in class AbstractKeyedEntryList<java.lang.String,QueryReport.DisplayReportEntry>
Parameters:
advertiser - the advertiser
Returns:
a QueryReport.DisplayReportEntry keyed with the supplied advertiser.

entryClass

protected final java.lang.Class entryClass()
Returns the QueryReport.DisplayReportEntry class.

Specified by:
entryClass in class AbstractTransportableEntryListBacking<QueryReport.DisplayReportEntry>
Returns:
QueryReport.DisplayReportEntry class.

getPosition

public final double getPosition(java.lang.String advertiser)
Returns the average position for the advertiser.

Parameters:
advertiser - the advertiser
Returns:
the average position for the advertiser

getPosition

public final double getPosition(int index)
Returns the average position for the advertiser.

Parameters:
index - the advertiser index
Returns:
the average position for the advertiser

setPosition

public final void setPosition(java.lang.String advertiser,
                              double position)
Sets the average position for the advertiser.

Parameters:
advertiser - the advertiser
position - the average position for the advertiser

setPosition

public final void setPosition(int index,
                              double position)
Sets the average position for the advertiser.

Parameters:
index - the advertiser index
position - the average position for the advertiser

getAd

public final Ad getAd(java.lang.String advertiser)
Returns the shown ad for the advertiser.

Parameters:
advertiser - the advertiser
Returns:
the shown ad for the advertiser.

getAd

public final Ad getAd(int index)
Returns the shown ad for the advertiser.

Parameters:
index - the advertiser index
Returns:
the shown ad for the advertiser.

setAd

public final void setAd(java.lang.String advertiser,
                        Ad ad)
Sets the shown ad for the advertiser.

Parameters:
advertiser - the advertiser
ad - the shown ad for the advertiser.

setAd

public final void setAd(int index,
                        Ad ad)
Sets the shown ad for the advertiser.

Parameters:
index - the advertiser index
ad - the shown ad for the advertiser.

setAdAndPosition

public final void setAdAndPosition(java.lang.String advertiser,
                                   Ad ad,
                                   double position)
Sets the shown ad and the average position for the advertiser.

Parameters:
advertiser - the advertiser
ad - the shown ad for the advertiser.
position - the average position for the advertiser.

setAdAndPosition

public final void setAdAndPosition(int index,
                                   Ad ad,
                                   double position)
Sets the shown ad and the average position for the advertiser.

Parameters:
index - the advertiser index
ad - the shown ad for the advertiser.
position - the average position for the advertiser.


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.