public class MeasureDefinition.MeasureValue extends java.lang.Object implements JRCalculable
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE| Constructor and Description |
|---|
MeasureDefinition.MeasureValue()
Initializes the value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(MeasureDefinition.MeasureValue measureValue)
Accumulates another measure value.
|
void |
addValue(java.lang.Object addValue)
Accumulates a value.
|
JRCalculable |
getHelperVariable(byte helperType)
Returns a helper variable.
|
java.lang.Object |
getIncrementedValue()
Returns the incremented value of the calculable object.
|
java.lang.Object |
getValue()
Returns the value of the calculable object.
|
protected void |
init() |
boolean |
isInitialized()
Returns
true if and only if the calculable object was only initialized and not incremented. |
MeasureDefinition.MeasureValue |
setHelper(MeasureDefinition.MeasureValue helperVariable,
byte type)
Sets a helper variable.
|
void |
setInitialized(boolean isInitialized)
Sets the initialized flag for this calculable object.
|
java.lang.String |
toString() |
public MeasureDefinition.MeasureValue()
protected void init()
public void addValue(java.lang.Object addValue)
throws JRException
addValue - the valueJRExceptionpublic void addValue(MeasureDefinition.MeasureValue measureValue) throws JRException
This is used for total calculations, when two accumulated values are combined into a total.
measureValue - the measure valueJRExceptionpublic java.lang.Object getValue()
JRCalculablegetValue in interface JRCalculablepublic java.lang.String toString()
toString in class java.lang.Objectpublic MeasureDefinition.MeasureValue setHelper(MeasureDefinition.MeasureValue helperVariable, byte type)
helperVariable - the helper variabletype - the helper typepublic boolean isInitialized()
JRCalculabletrue if and only if the calculable object was only initialized and not incremented.isInitialized in interface JRCalculabletrue if and only if the calculable object was only initialized and not incrementedpublic java.lang.Object getIncrementedValue()
JRCalculablegetIncrementedValue in interface JRCalculablepublic JRCalculable getHelperVariable(byte helperType)
JRCalculablegetHelperVariable in interface JRCalculablehelperType - the desired helper variable typepublic void setInitialized(boolean isInitialized)
JRCalculablesetInitialized in interface JRCalculableisInitialized - the initialized flagJRCalculable.isInitialized()© 2001-2010 Jaspersoft Corporation www.jaspersoft.com