Package com.tnsai.coordination.debate
Record Class DebateResult
java.lang.Object
java.lang.Record
com.tnsai.coordination.debate.DebateResult
public record DebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration)
extends Record
Result of a debate execution.
- Since:
- 0.0.5
-
Constructor Summary
ConstructorsConstructorDescriptionDebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration) Creates an instance of aDebateResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidencerecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns true if the judge reached a decision with high confidence.Returns the value of theopponentSummaryrecord component.Returns the value of theproponentSummaryrecord component.rounds()Returns the value of theroundsrecord component.intReturns the value of theroundsUsedrecord component.final StringtoString()Returns a string representation of this record class.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
DebateResult
public DebateResult(String verdict, double confidence, List<DebateRound> rounds, int roundsUsed, String proponentSummary, String opponentSummary, Duration duration) Creates an instance of aDebateResultrecord class.- Parameters:
verdict- the value for theverdictrecord componentconfidence- the value for theconfidencerecord componentrounds- the value for theroundsrecord componentroundsUsed- the value for theroundsUsedrecord componentproponentSummary- the value for theproponentSummaryrecord componentopponentSummary- the value for theopponentSummaryrecord componentduration- the value for thedurationrecord component
-
-
Method Details
-
isHighConfidence
public boolean isHighConfidence()Returns true if the judge reached a decision with high confidence. -
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 '=='. -
verdict
Returns the value of theverdictrecord component.- Returns:
- the value of the
verdictrecord component
-
confidence
public double confidence()Returns the value of theconfidencerecord component.- Returns:
- the value of the
confidencerecord component
-
rounds
Returns the value of theroundsrecord component.- Returns:
- the value of the
roundsrecord component
-
roundsUsed
public int roundsUsed()Returns the value of theroundsUsedrecord component.- Returns:
- the value of the
roundsUsedrecord component
-
proponentSummary
Returns the value of theproponentSummaryrecord component.- Returns:
- the value of the
proponentSummaryrecord component
-
opponentSummary
Returns the value of theopponentSummaryrecord component.- Returns:
- the value of the
opponentSummaryrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-