public class DoubleValue extends NumeralValue
TestValue.ValueType
TestGroup.ClassType
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<Integer,Double> |
values |
FAILED_STATE_COLOR, group, PASSED_STATE_COLOR, properties, type, unit
ctype, description, groupHash, groups, name, parent, thresholds
Constructor and Description |
---|
DoubleValue(TestGroup parent,
String group,
String name) |
DoubleValue(TestGroup parent,
String group,
String name,
String unit) |
DoubleValue(TestGroup parent,
String group,
String name,
String description,
String unit) |
DoubleValue(TestGroup parent,
String group,
String name,
String description,
String unit,
TestGroup.ClassType ctype) |
DoubleValue(TestGroup parent,
String group,
String name,
String unit,
TestGroup.ClassType ctype) |
DoubleValue(TestGroup parent,
String group,
String name,
TestGroup.ClassType ctype) |
Modifier and Type | Method and Description |
---|---|
Double |
calculateAverage()
Calculate average
|
void |
checkThresholdStatus(Double previous,
Double average)
Check attached thresholds to verify result validity.
|
com.google.gson.JsonObject |
getCondensedJsonObject(int build,
int hash)
Create an JSON object with the condensed information of this result [EXPORT CONDENSED]
|
com.google.gson.JsonArray |
getDataAsJsonArray(TreeSet<Integer> buildNumbers)
Create JSON object containing all results necessary to display the graph [DETAIL PAGE]
|
com.google.gson.JsonObject |
getJsonObject(int hash)
Get last build result content in Json Object [EXPORT RAW]
Works with TestValue getJsonObject()
|
Double |
getPreviousValue(int build)
Get previous build value
|
Double |
getValue() |
Double |
getValue(int build) |
String |
getValueAsLocaleString(int build,
char decimalSeparator)
Return last value as string in locale format [TABLE PAGE][DETAIL PAGE]
|
String |
getValueAsString(int build)
Return last value as string in default locale [TABLE PAGE][DETAIL PAGE]
|
Map<Integer,Double> |
getValues() |
void |
setValue(double value) |
void |
setValue(int build,
double value) |
getMaximum, getMinimum
checkType, convertCondensedParameterJsonObject, convertCondensedResultJsonObject, convertParameterJsonObject, convertResultJsonObject, getColor, getCSVCondensed, getCSVResult, getCSVResultState, getFailedState, getFailedState, getGroup, getHTMLCondensed, getHTMLCondensedDetail, getHTMLDetails, getHTMLParameter, getHTMLParameters, getHTMLResult, getHTMLResult, getId, getId, getMessages, getMessages, getNumberOfProperties, getParameterJsonObject, getParameters, getParameters, getProperties, getType, getUnit, isNumeral, outputType, setFailedState, setFailedState, setGroup, setGroup, setId, setId, setMessage, setMessage, setMessages, setMessages, setParameter, setParameter, setParameters, setParameters
addGroup, addThreshold, convertCondensedFileJsonObject, getAllConnectedParameters, getAllConnectedThresholds, getClassType, getConnectedParameters, getConnectedParentParameters, getConnectedParentThresholds, getConnectedThresholds, getDescription, getDescriptions, getFileGroup, getFileHash, getFileSubGroupFullName, getFullName, getGroup, getGroupHash, getName, getNumberOfGroups, getNumberOfThresholds, getParent, getTestGroups, getThreshold, isArray, isParameterGrp, isThresholdGrp
protected final ConcurrentHashMap<Integer,Double> values
public DoubleValue(TestGroup parent, String group, String name, String description, String unit)
public DoubleValue(TestGroup parent, String group, String name, TestGroup.ClassType ctype)
public DoubleValue(TestGroup parent, String group, String name, String unit, TestGroup.ClassType ctype)
public Double getPreviousValue(int build)
build
- Build numberpublic Double calculateAverage()
public com.google.gson.JsonObject getCondensedJsonObject(int build, int hash)
getCondensedJsonObject
in class TestValue
build
- Build Numberhash
- Result hashpublic com.google.gson.JsonArray getDataAsJsonArray(TreeSet<Integer> buildNumbers) throws InvalidClassException
getDataAsJsonArray
in class TestValue
buildNumbers
- List of buildsInvalidClassException
- Invalid classpublic com.google.gson.JsonObject getJsonObject(int hash)
getJsonObject
in class TestValue
hash
- Result hashpublic String getValueAsString(int build)
getValueAsString
in class TestValue
build
- Build numberpublic String getValueAsLocaleString(int build, char decimalSeparator)
getValueAsLocaleString
in class TestValue
build
- Build numberdecimalSeparator
- Decimal separatorpublic void checkThresholdStatus(Double previous, Double average)
checkThresholdStatus
in class TestValue
previous
- Previous valueaverage
- Calculated averagepublic void setValue(double value)
public void setValue(int build, double value)
public Double getValue() throws NullPointerException
NullPointerException
public Double getValue(int build) throws NullPointerException
NullPointerException
Copyright © 2016–2019. All rights reserved.