Class AgentBenchmarkSuite.ProblemResult
java.lang.Object
neqsim.util.agentic.AgentBenchmarkSuite.ProblemResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
AgentBenchmarkSuite
Result of evaluating a single benchmark problem.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final Stringprivate final booleanprivate final AgentBenchmarkSuite.BenchmarkProblemprivate static final longprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionProblemResult(AgentBenchmarkSuite.BenchmarkProblem problem, double actualValue, boolean passed, String verdict, String detail) Creates a new problem result. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the submitted value.Returns the detail string.Returns the benchmark problem.Returns the verdict string.booleanisPassed()Returns whether the result passed.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
problem
-
actualValue
private final double actualValue -
passed
private final boolean passed -
verdict
-
detail
-
-
Constructor Details
-
ProblemResult
public ProblemResult(AgentBenchmarkSuite.BenchmarkProblem problem, double actualValue, boolean passed, String verdict, String detail) Creates a new problem result.- Parameters:
problem- the benchmark problemactualValue- the agent-submitted valuepassed- whether the result passed the tolerance checkverdict- short verdict string (PASS, FAIL, NOT_ATTEMPTED, etc.)detail- detailed explanation of the comparison
-
-
Method Details
-
getProblem
Returns the benchmark problem.- Returns:
- the problem definition
-
getActualValue
public double getActualValue()Returns the submitted value.- Returns:
- the actual computed value
-
isPassed
public boolean isPassed()Returns whether the result passed.- Returns:
- true if within tolerance
-
getVerdict
Returns the verdict string.- Returns:
- the verdict (PASS, FAIL, NOT_ATTEMPTED, etc.)
-
getDetail
-