Package akka.javasdk.testkit.eval
Record Class Evaluators.JudgeEvaluator
- All Implemented Interfaces:
Evaluator
- Enclosing class:
Evaluators
@EvalLabel("judge")
public static record Evaluators.JudgeEvaluator(Judge judge, String criterion, double threshold)
extends Record
-
Nested Class Summary
Nested classes/interfaces inherited from interface akka.javasdk.testkit.eval.Evaluator
Evaluator.EvalResult -
Constructor Summary
ConstructorsConstructorDescriptionJudgeEvaluator(Judge judge, String criterion, double threshold) Creates an instance of aJudgeEvaluatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecriterionrecord component.final booleanIndicates whether some other object is "equal to" this one.evaluate(EvalCase<?> evalCase, Interaction interaction) Checks one turn.final inthashCode()Returns a hash code value for this object.judge()Returns the value of thejudgerecord component.doubleReturns the value of thethresholdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JudgeEvaluator
Creates an instance of aJudgeEvaluatorrecord class.- Parameters:
judge- the value for thejudgerecord componentcriterion- the value for thecriterionrecord componentthreshold- the value for thethresholdrecord component
-
-
Method Details
-
evaluate
Description copied from interface:EvaluatorChecks one turn. Inconclusive when the evidence this check needs is absent or does not support a verdict. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
judge
Returns the value of thejudgerecord component.- Returns:
- the value of the
judgerecord component
-
criterion
Returns the value of thecriterionrecord component.- Returns:
- the value of the
criterionrecord component
-
threshold
public double threshold()Returns the value of thethresholdrecord component.- Returns:
- the value of the
thresholdrecord component
-