Package com.tnsai.evaluation.autoharness
Record Class AutoHarnessLoop.LoopResult
java.lang.Object
java.lang.Record
com.tnsai.evaluation.autoharness.AutoHarnessLoop.LoopResult
- Enclosing class:
AutoHarnessLoop
public static record AutoHarnessLoop.LoopResult(int failureCount, int clusterCount, int evalCaseCount, RegressionGate.GateResult gateResult, String summary)
extends Record
Result of a single auto-harness loop iteration.
-
Constructor Summary
ConstructorsConstructorDescriptionLoopResult(int failureCount, int clusterCount, int evalCaseCount, RegressionGate.GateResult gateResult, String summary) Creates an instance of aLoopResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theclusterCountrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of theevalCaseCountrecord component.intReturns the value of thefailureCountrecord component.booleanReturns the value of thegateResultrecord component.final inthashCode()Returns a hash code value for this object.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoopResult
public LoopResult(int failureCount, int clusterCount, int evalCaseCount, RegressionGate.GateResult gateResult, String summary) Creates an instance of aLoopResultrecord class.- Parameters:
failureCount- the value for thefailureCountrecord componentclusterCount- the value for theclusterCountrecord componentevalCaseCount- the value for theevalCaseCountrecord componentgateResult- the value for thegateResultrecord componentsummary- the value for thesummaryrecord component
-
-
Method Details
-
gatePassed
public boolean gatePassed() -
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 '=='. -
failureCount
public int failureCount()Returns the value of thefailureCountrecord component.- Returns:
- the value of the
failureCountrecord component
-
clusterCount
public int clusterCount()Returns the value of theclusterCountrecord component.- Returns:
- the value of the
clusterCountrecord component
-
evalCaseCount
public int evalCaseCount()Returns the value of theevalCaseCountrecord component.- Returns:
- the value of the
evalCaseCountrecord component
-
gateResult
Returns the value of thegateResultrecord component.- Returns:
- the value of the
gateResultrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-