public class CalculateStatisticAttributes extends AbstractMeasurementRule
Modifier and Type | Class and Description |
---|---|
protected class |
CalculateStatisticAttributes.StatisticValues
Internal class to hold the statistic values
|
dumpFilePath, ignoreMissingValues, measurementHolderRef, resultRef
loggerName, postMethods, preMethods, sessionRef
arguments, ctx, descriptor, NEW_LINE
Constructor and Description |
---|
CalculateStatisticAttributes() |
Modifier and Type | Method and Description |
---|---|
protected short[] |
createFlags(NameValueUnit globalFlagNvu,
NameValueUnit flagsNvu,
int nrOfValues)
Create flags array from global flags.
|
void |
execute()
Execute the program.
|
protected CalculateStatisticAttributes.StatisticValues |
getExplicitStatisticValues(NameValueUnit flagsNvu,
NameValueUnit valuesNvu,
NameValueUnit globalFlagNvu,
boolean hasStdDev)
Loop over all values in a local column and find minimum and maximum
|
void |
init()
Initialize the work.
|
getDumpFilePath, getMeasurementHolder, getValue, setValue, storeResult
execute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toString
addAttributesToNameValueUnitArray, addAttributeToNameValueUnitArray, addStringValueToNameValueUnitArray, checkDirectoy, checkDirectoy, checkDirectoy, checkFile, checkFile, checkFile, checkIntValue, checkStringValue, compressNvuArray, createMessageFromPropertyFile, createMessageFromPropertyFile, createMessageFromPropertyFile, createTsUnionFromObject, deleteRowWithAttributes, getArguments, getContext, getDescriptor, getListFromProperty, getMandatoryProperty, getMandatoryProperty, getMandatoryPropertyAsInt, getMandatoryPropertyAsList, getMandatoryPropertyWithRuleException, getNvuArrayFromMap, getNvuArrayFromMap, getNvuObjectWithName, getNvuObjectWithName, getNvuObjectWithName, getOdsCacheFromProperty, getOptioanlPropertyAsInt, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalProperty, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsBoolean, getOptionalPropertyAsList, makeUpperCaseKeyword, removeAttributeFromNameValueUnitArray, removeAttributeFromNameValueUnitArray, setArguments, setContext, setDescriptor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContext, getDescriptor, setArguments, setContext, setDescriptor
public void init() throws InitializationFailedException
AbstractImplementation
init
in interface ImplementationIF
init
in class AbstractMeasurementRule
InitializationFailedException
- if the initialization fails.public void execute() throws ExecutableException
AbstractRule
execute
in interface ExecutableIF
execute
in class AbstractMeasurementRule
ExecutableException
- if execution fails.protected CalculateStatisticAttributes.StatisticValues getExplicitStatisticValues(NameValueUnit flagsNvu, NameValueUnit valuesNvu, NameValueUnit globalFlagNvu, boolean hasStdDev)
flagsNvu
- The flags attributevaluesNvu
- The values attributeglobalFlagNvu
- The global flag NameValueUnithasStdDev
- If true, the standard deviation is calculated. This is done in a second loop because the average is needed.protected short[] createFlags(NameValueUnit globalFlagNvu, NameValueUnit flagsNvu, int nrOfValues)
globalFlagNvu
- The NameValueUnit with the global flag attributeflagsNvu
- The NameValueUnit with the flags attributenrOfValues
- The number of values