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

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractKeyedEntry<java.lang.String>
      extended by edu.umich.eecs.tac.props.AbstractStringEntry
          extended by edu.umich.eecs.tac.props.AbstractAdvertiserEntry
              extended by edu.umich.eecs.tac.props.QueryReport.DisplayReportEntry
All Implemented Interfaces:
AdvertiserEntry, KeyedEntry<java.lang.String>, java.io.Serializable, se.sics.isl.transport.Transportable
Enclosing class:
QueryReport

public static class QueryReport.DisplayReportEntry
extends AbstractAdvertiserEntry

Display report entry contains the positions and displayed ads of the advertiser during the period.

Author:
Patrick Jordan
See Also:
Serialized Form

Constructor Summary
QueryReport.DisplayReportEntry()
          Creates a new display report entry with a position set to NaN and a null ad.
 
Method Summary
 Ad getAd()
          Returns the shown ad.
 double getPosition()
          Returns the average position.
protected  void readEntry(se.sics.isl.transport.TransportReader reader)
          Reads the display report entry information.
 void setAd(Ad ad)
          Sets the shown ad.
 void setAdAndPosition(Ad ad, double position)
          Sets the shown ad and the average position.
 void setPosition(double position)
          Sets the average position.
protected  void writeEntry(se.sics.isl.transport.TransportWriter writer)
          Writes the display report entry information to the writer.
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractAdvertiserEntry
getAdvertiser, setAdvertiser
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractStringEntry
readKey, writeKey
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractKeyedEntry
getKey, getTransportName, read, setKey, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.umich.eecs.tac.props.KeyedEntry
getKey
 
Methods inherited from interface se.sics.isl.transport.Transportable
getTransportName, read, write
 

Constructor Detail

QueryReport.DisplayReportEntry

public QueryReport.DisplayReportEntry()
Creates a new display report entry with a position set to NaN and a null ad.

Method Detail

getAd

public final Ad getAd()
Returns the shown ad.

Returns:
the shown ad.

setAd

public final void setAd(Ad ad)
Sets the shown ad.

Parameters:
ad - the shown ad.

getPosition

public final double getPosition()
Returns the average position.

Returns:
the average position.

setPosition

public final void setPosition(double position)
Sets the average position.

Parameters:
position - the average position.

setAdAndPosition

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

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

readEntry

protected final void readEntry(se.sics.isl.transport.TransportReader reader)
                        throws java.text.ParseException
Reads the display report entry information.

Specified by:
readEntry in class AbstractKeyedEntry<java.lang.String>
Parameters:
reader - the reader to read the state in from.
Throws:
java.text.ParseException - if an exception occured the display report entry information.

writeEntry

protected final void writeEntry(se.sics.isl.transport.TransportWriter writer)
Writes the display report entry information to the writer.

Specified by:
writeEntry in class AbstractKeyedEntry<java.lang.String>
Parameters:
writer - the writer to write the entry state to


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