Package com.tnsai.coordination.roma
Record Class RecursiveTaskSolver.SolveTrace
java.lang.Object
java.lang.Record
com.tnsai.coordination.roma.RecursiveTaskSolver.SolveTrace
- Enclosing class:
RecursiveTaskSolver
public static record RecursiveTaskSolver.SolveTrace(RecursiveTaskSolver.SolveTrace.Type type, String task, String detail, int depth, int attempt)
extends Record
Trace entry recording a step in the recursive solve process.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSolveTrace(RecursiveTaskSolver.SolveTrace.Type type, String task, String detail, int depth, int attempt) Creates an instance of aSolveTracerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.intdepth()Returns the value of thedepthrecord component.detail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.task()Returns the value of thetaskrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SolveTrace
public SolveTrace(RecursiveTaskSolver.SolveTrace.Type type, String task, String detail, int depth, int attempt) Creates an instance of aSolveTracerecord class.- Parameters:
type- the value for thetyperecord componenttask- the value for thetaskrecord componentdetail- the value for thedetailrecord componentdepth- the value for thedepthrecord componentattempt- the value for theattemptrecord component
-
-
Method Details
-
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 '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
task
Returns the value of thetaskrecord component.- Returns:
- the value of the
taskrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-
depth
public int depth()Returns the value of thedepthrecord component.- Returns:
- the value of the
depthrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-