edu.umich.eecs.tac.props
Class BidBundle.BidEntry

java.lang.Object
  extended by edu.umich.eecs.tac.props.AbstractKeyedEntry<T>
      extended by edu.umich.eecs.tac.props.AbstractTransportableEntry<Query>
          extended by edu.umich.eecs.tac.props.AbstractQueryEntry
              extended by edu.umich.eecs.tac.props.BidBundle.BidEntry
All Implemented Interfaces:
KeyedEntry<Query>, QueryEntry, java.io.Serializable, se.sics.isl.transport.Transportable
Enclosing class:
BidBundle

public static class BidBundle.BidEntry
extends AbstractQueryEntry

Each BidEntry contains:

Author:
Patrick Jordan, Lee Callender
See Also:
Serialized Form

Constructor Summary
BidBundle.BidEntry()
          Creates a bid entry with all values set to their persistent value.
 
Method Summary
 Ad getAd()
          Returns the ad for display for the query class.
 double getBid()
          Returns the bid for the query class.
 double getDailyLimit()
          Returns the daily spend limit for the query class.
protected  void readEntry(se.sics.isl.transport.TransportReader reader)
          Reads the bid entry state from the reader.
 void setAd(Ad ad)
          Sets the ad for the query class.
 void setBid(double bid)
          Sets the bid for the query class.
 void setDailyLimit(double dailyLimit)
          Sets the daily spend limit for the query class.
 java.lang.String toString()
          Returns a string representation for the bid entry.
protected  void writeEntry(se.sics.isl.transport.TransportWriter writer)
          Writes the bid entry state to the writer.
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractQueryEntry
getQuery, keyNodeName, setQuery
 
Methods inherited from class edu.umich.eecs.tac.props.AbstractTransportableEntry
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, 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

BidBundle.BidEntry

public BidBundle.BidEntry()
Creates a bid entry with all values set to their persistent value.

Method Detail

getAd

public final Ad getAd()
Returns the ad for display for the query class.

Returns:
the ad for display.

setAd

public final void setAd(Ad ad)
Sets the ad for the query class. Use PERSISTENT_AD to persist the prior day's value.

Parameters:
ad - the ad.

getBid

public final double getBid()
Returns the bid for the query class.

Returns:
the bid for the query class.

setBid

public final void setBid(double bid)
Sets the bid for the query class. Use PERSISTENT_BID to persist the prior day's value.

Parameters:
bid - the bid for the query class

readEntry

protected final void readEntry(se.sics.isl.transport.TransportReader reader)
                        throws java.text.ParseException
Reads the bid entry state from the reader.

Specified by:
readEntry in class AbstractKeyedEntry<Query>
Parameters:
reader - the reader to read the state in from.
Throws:
java.text.ParseException - if an exception occurs when reading the bid entry state

writeEntry

protected final void writeEntry(se.sics.isl.transport.TransportWriter writer)
Writes the bid entry state to the writer.

Specified by:
writeEntry in class AbstractKeyedEntry<Query>
Parameters:
writer - the writer to write the entry state to

getDailyLimit

public final double getDailyLimit()
Returns the daily spend limit for the query class.

Returns:
the daily spend limit for the query class.

setDailyLimit

public final void setDailyLimit(double dailyLimit)
Sets the daily spend limit for the query class.

Parameters:
dailyLimit - the daily spend limit for the query class

toString

public final java.lang.String toString()
Returns a string representation for the bid entry.

Overrides:
toString in class java.lang.Object
Returns:
a string representation for the bid entry.


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