public class EvaluationRecord extends Object
| Constructor and Description |
|---|
EvaluationRecord(Map<String,List<IEvaluation>> evaluations) |
| Modifier and Type | Method and Description |
|---|---|
<T extends IEvaluation<T>> |
evaluation(Class<T> evalClass)
Get the evaluation of a given type
|
<T extends IEvaluation> |
evaluation(SDVariable param)
Get the evaluation for a given param/variable
|
<T extends IEvaluation<T>> |
evaluation(SDVariable param,
Class<T> evalClass)
Get the evaluation of a given type, for a given param/variable
|
IEvaluation |
evaluation(SDVariable param,
int index)
Get the evaluation for param at the specified index
|
<T extends IEvaluation> |
evaluation(String param)
Get the evaluation for a given param/variable
|
<T extends IEvaluation<T>> |
evaluation(String param,
Class<T> evalClass)
Get the evaluation of a given type, for a given param/variable
|
IEvaluation |
evaluation(String param,
int index)
Get the evaluation for param at the specified index
|
Map<String,List<IEvaluation>> |
evaluations()
Get all evaluations
|
List<IEvaluation> |
evaluations(SDVariable param)
Get evaluations for a given param/variable
|
List<IEvaluation> |
evaluations(String param)
Get evaluations for a given param/variable
|
double |
getValue(IMetric metric)
Get the metric's value for the evaluation of the metric's type
|
double |
getValue(SDVariable param,
IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variable
|
double |
getValue(SDVariable param,
int index,
IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given index
|
double |
getValue(String param,
IMetric metric)
Get the metric's value for the evaluation of the metric's type, for a given param/variable
|
double |
getValue(String param,
int index,
IMetric metric)
Get the metric's value for the evaluation for a given param/variable at the given index
|
boolean |
isEmpty() |
public EvaluationRecord(Map<String,List<IEvaluation>> evaluations)
public boolean isEmpty()
public Map<String,List<IEvaluation>> evaluations()
public List<IEvaluation> evaluations(String param)
param - The target param/variablepublic List<IEvaluation> evaluations(SDVariable param)
param - The target param/variablepublic IEvaluation evaluation(String param, int index)
public IEvaluation evaluation(SDVariable param, int index)
public <T extends IEvaluation> T evaluation(String param)
Will throw an exception if there are more than one or no evaluations for the param
param - The target param/variablepublic <T extends IEvaluation> T evaluation(SDVariable param)
Will throw an exception if there are more than one or no evaluations for the param
param - The target param/variablepublic <T extends IEvaluation<T>> T evaluation(Class<T> evalClass)
Will throw an exception if there are more than one or no evaluations of that type
evalClass - The type of evaluation to look forpublic <T extends IEvaluation<T>> T evaluation(String param, Class<T> evalClass)
Will throw an exception if there are more than one or no evaluations of that type for the given param
param - The target param/variableevalClass - The type of evaluation to look forpublic <T extends IEvaluation<T>> T evaluation(SDVariable param, Class<T> evalClass)
Will throw an exception if there are more than one or no evaluations of that type for the given param
param - The target param/variableevalClass - The type of evaluation to look forpublic double getValue(IMetric metric)
Will throw an exception if there are more than one or no evaluations of that type
metric - The metric to calculatepublic double getValue(String param, IMetric metric)
Will throw an exception if there are more than one or no evaluations of that type for the given param
param - The target param/variablemetric - The metric to calculatepublic double getValue(SDVariable param, IMetric metric)
Will throw an exception if there are more than one or no evaluations of that type for the given param
param - The target param/variablemetric - The metric to calculatepublic double getValue(String param, int index, IMetric metric)
Will throw an exception if the target evaluation doesn't support the given metric
param - The target param/variableindex - The index of the target evaluation on the parammetric - The metric to calculatepublic double getValue(SDVariable param, int index, IMetric metric)
Will throw an exception if the target evaluation doesn't support the given metric
param - The target param/variableindex - The index of the target evaluation on the parammetric - The metric to calculateCopyright © 2021. All rights reserved.