public class ResultValue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResultValue.Field
This is set of fields for input/output to XML and JSON format
|
| Modifier | Constructor and Description |
|---|---|
protected |
ResultValue(CalculationResult result,
String label,
double value)
Constructor for ResultValue.
|
| Modifier and Type | Method and Description |
|---|---|
CalculationResult |
getCalculationResult()
Gets the CalculationResult.
|
String |
getLabel()
Gets the entry label.
|
double |
getValue()
Gets the probability mass value.
|
org.json.JSONObject |
toJson()
Returns a JSON representation of this object.
|
String |
toString()
Returns a String value of the JSON representation of this object.
|
protected ResultValue(CalculationResult result, String label, double value)
result - CalculationResult containing the entrieslabel - entry label (state or range)value - probability mass valuepublic CalculationResult getCalculationResult()
public String getLabel()
public double getValue()
public org.json.JSONObject toJson()
Copyright © 2022. All rights reserved.