|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.umich.eecs.tac.props.AbstractTransportable edu.umich.eecs.tac.props.AbstractTransportableEntryListBacking<S> edu.umich.eecs.tac.props.AbstractKeyedEntryList<Query,T> edu.umich.eecs.tac.props.AbstractQueryKeyedReportTransportable<SalesReport.SalesReportEntry> edu.umich.eecs.tac.props.SalesReport
public class SalesReport
Sales report is a daily report of the sales revenue and conversions an advertisers garners for each query class.
Nested Class Summary | |
---|---|
static class |
SalesReport.SalesReportEntry
Sales report entry holds the conversions and revenue for a query class. |
Constructor Summary | |
---|---|
SalesReport()
|
Method Summary | |
---|---|
void |
addConversions(int index,
int conversions)
Adds conversions for a query. |
void |
addConversions(Query query,
int conversions)
Adds conversions for a query. |
protected void |
addQuery(Query query,
int conversions,
double revenue)
Adds query data to the report. |
void |
addRevenue(int index,
double revenue)
Adds revenue for a query. |
void |
addRevenue(Query query,
double revenue)
Adds revenue for a query. |
protected SalesReport.SalesReportEntry |
createEntry(Query query)
Returns a entry with the query as the key. |
protected java.lang.Class |
entryClass()
Returns the SalesReport.SalesReportEntry class. |
int |
getConversions(int index)
Returns the conversions for a query. |
int |
getConversions(Query query)
Returns the conversions for a query. |
double |
getRevenue(int index)
Returns the revenue for a query. |
double |
getRevenue(Query query)
Returns the revenue for a query. |
void |
setConversions(int index,
int conversions)
Sets the conversions for a query. |
void |
setConversions(Query query,
int conversions)
Sets the conversions for a query. |
void |
setConversionsAndRevenue(int index,
int conversions,
double revenue)
Sets the conversions and revenue for a query. |
void |
setConversionsAndRevenue(Query query,
int conversions,
double revenue)
Sets the conversions and revenue for a query. |
void |
setRevenue(int index,
double revenue)
Sets the revenue for a query. |
void |
setRevenue(Query query,
double revenue)
Sets the revenue for a query. |
Methods inherited from class edu.umich.eecs.tac.props.AbstractQueryKeyedReportTransportable |
---|
addQuery, containsQuery, getQuery |
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 |
---|
public SalesReport()
Method Detail |
---|
protected final SalesReport.SalesReportEntry createEntry(Query query)
entry
with the query
as the key.
createEntry
in class AbstractKeyedEntryList<Query,SalesReport.SalesReportEntry>
query
- the query key.
entry
with the query
as the key.protected final java.lang.Class entryClass()
SalesReport.SalesReportEntry
class.
entryClass
in class AbstractTransportableEntryListBacking<SalesReport.SalesReportEntry>
SalesReport.SalesReportEntry
class.protected final void addQuery(Query query, int conversions, double revenue)
query
- the query.conversions
- the conversions.revenue
- the revenue.public final void addConversions(Query query, int conversions)
query
- the query.conversions
- the conversions.public final void addConversions(int index, int conversions)
index
- the query index.conversions
- the conversions.public final void addRevenue(Query query, double revenue)
query
- the query.revenue
- the revenue.public final void addRevenue(int index, double revenue)
index
- the query index.revenue
- the revenue.public final void setConversions(Query query, int conversions)
query
- the query.conversions
- the conversions.public final void setConversions(int index, int conversions)
index
- the query index.conversions
- the conversions.public final void setRevenue(Query query, double revenue)
query
- the query.revenue
- the revenue.public final void setRevenue(int index, double revenue)
index
- the query index.revenue
- the revenue.public final void setConversionsAndRevenue(Query query, int conversions, double revenue)
query
- the query.conversions
- the conversions.revenue
- the revenue.public final void setConversionsAndRevenue(int index, int conversions, double revenue)
index
- the query index.conversions
- the conversions.revenue
- the revenue.public final int getConversions(Query query)
query
- the query.
public final int getConversions(int index)
index
- the query index.
public final double getRevenue(Query query)
query
- the query.
public final double getRevenue(int index)
index
- the query index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |