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, resultRefloggerName, postMethods, preMethods, sessionRefarguments, 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, storeResultexecute, executePostMethods, executePreMethods, getAoSessionFromContextWithSessionRef, getId, getOdsCache, getPointTo, getSessionRef, getType, isPedantic, setGathermode, setId, setPointTo, setPostMethods, setPreMethods, setSessionRef, setType, terminate, toString, toString, toStringaddAttributesToNameValueUnitArray, 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, setDescriptorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContext, getDescriptor, setArguments, setContext, setDescriptorpublic void init()
throws InitializationFailedException
AbstractImplementationinit in interface ImplementationIFinit in class AbstractMeasurementRuleInitializationFailedException - if the initialization fails.public void execute()
throws ExecutableException
AbstractRuleexecute in interface ExecutableIFexecute in class AbstractMeasurementRuleExecutableException - 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