|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ebay.carad.os.vitalsigns.dataretrievers.ReportRatioLogger
public class ReportRatioLogger
Takes in two report ID's and logs the ratio of their most recently logged values into its own report ID.
The Report ID and sort order of the report this runs for needs to be higher than both numerator and denominator in order for it to run after the other reports.
You can either supply an instance of IDataDAO to use, or this logger will utilized the default IDataDAO from the IDashboardAgent that invokes it (if you do not specify one).
Field Summary | |
---|---|
private IDataDAO |
mDataDAO
|
private IDashboardReport |
mDenominator
|
private IDashboardReport |
mNumerator
|
private double |
multiplier
|
Fields inherited from interface com.ebay.carad.os.vitalsigns.IDataRetriever |
---|
NO_OP_DATA_RETRIEVER, ZERO |
Constructor Summary | |
---|---|
ReportRatioLogger()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.Float |
getData(IDashboardAgent agent)
|
IDataDAO |
getDataDAO(IDashboardAgent agent)
|
void |
setDenominator(IDashboardReport denominator)
Set the denominator (bottom) report. |
void |
setMultiplier(double inMultiplier)
Set the multiplier for the result of numerator divided by denominator. |
void |
setNumerator(IDashboardReport numerator)
Set the numerator (top) report. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IDashboardReport mNumerator
private IDashboardReport mDenominator
private double multiplier
private IDataDAO mDataDAO
Constructor Detail |
---|
public ReportRatioLogger()
Method Detail |
---|
public void setNumerator(IDashboardReport numerator)
numerator
- the numerator (top) reportpublic void setDenominator(IDashboardReport denominator)
denominator
- the numerator (bottom) reportpublic void setMultiplier(double inMultiplier)
inMultiplier
- multiplier to usepublic IDataDAO getDataDAO(IDashboardAgent agent)
public java.lang.Float getData(IDashboardAgent agent)
getData
in interface IDataRetriever
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface IDataRetriever
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |