edu.umich.eecs.tac.props
Class SalesReport.SalesReportEntry
java.lang.Object
edu.umich.eecs.tac.props.AbstractKeyedEntry<T>
edu.umich.eecs.tac.props.AbstractTransportableEntry<Query>
edu.umich.eecs.tac.props.AbstractQueryEntry
edu.umich.eecs.tac.props.SalesReport.SalesReportEntry
- All Implemented Interfaces:
- KeyedEntry<Query>, QueryEntry, java.io.Serializable, se.sics.isl.transport.Transportable
- Enclosing class:
- SalesReport
public static class SalesReport.SalesReportEntry
- extends AbstractQueryEntry
Sales report entry holds the conversions and revenue for a query class.
- Author:
- Patrick Jordan
- See Also:
- Serialized Form
Method Summary |
int |
getConversions()
Returns the conversions. |
double |
getRevenue()
Returns the revenue. |
protected void |
readEntry(se.sics.isl.transport.TransportReader reader)
Reads the revenue and conversions from the reader. |
java.lang.String |
toString()
Returns the string representation of the sales report entry. |
protected void |
writeEntry(se.sics.isl.transport.TransportWriter writer)
Writes the revenue and conversions to the writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface se.sics.isl.transport.Transportable |
getTransportName, read, write |
SalesReport.SalesReportEntry
public SalesReport.SalesReportEntry()
getConversions
public final int getConversions()
- Returns the conversions.
- Returns:
- the conversions.
getRevenue
public final double getRevenue()
- Returns the revenue.
- Returns:
- the revenue.
readEntry
protected final void readEntry(se.sics.isl.transport.TransportReader reader)
throws java.text.ParseException
- Reads the revenue and conversions 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 occured reading the conversions and revenue.
writeEntry
protected final void writeEntry(se.sics.isl.transport.TransportWriter writer)
- Writes the revenue and conversions to the writer.
- Specified by:
writeEntry
in class AbstractKeyedEntry<Query>
- Parameters:
writer
- the writer to write the entry state to
toString
public final java.lang.String toString()
- Returns the string representation of the sales report entry.
- Overrides:
toString
in class java.lang.Object
- Returns:
- the string representation of the sales report entry.
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.