public class MeasureDefinition.MeasureValue extends java.lang.Object implements JRCalculable
HELPER_COUNT, HELPER_SIZE, HELPER_SUM, HELPER_VARIANCE
Constructor and Description |
---|
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() |
protected void init()
public void addValue(java.lang.Object addValue) throws JRException
addValue
- the valueJRException
public 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 valueJRException
public java.lang.Object getValue()
JRCalculable
getValue
in interface JRCalculable
public java.lang.String toString()
toString
in class java.lang.Object
public MeasureDefinition.MeasureValue setHelper(MeasureDefinition.MeasureValue helperVariable, byte type)
helperVariable
- the helper variabletype
- the helper typepublic boolean isInitialized()
JRCalculable
true
if and only if the calculable object was only initialized and not incremented.isInitialized
in interface JRCalculable
true
if and only if the calculable object was only initialized and not incrementedpublic java.lang.Object getIncrementedValue()
JRCalculable
getIncrementedValue
in interface JRCalculable
public JRCalculable getHelperVariable(byte helperType)
JRCalculable
getHelperVariable
in interface JRCalculable
helperType
- the desired helper variable typepublic void setInitialized(boolean isInitialized)
JRCalculable
setInitialized
in interface JRCalculable
isInitialized
- the initialized flagJRCalculable.isInitialized()
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com