Package org.ddolib.common.solver
Record Class SearchStatistics
java.lang.Object
java.lang.Record
org.ddolib.common.solver.SearchStatistics
public record SearchStatistics(SearchStatus status, int nbIterations, int queueMaxSize, long runTimeMs, double incumbent, double gap)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSearchStatistics(SearchStatus status, int nbIterations, int queueMaxSize, long runTimeMs, double incumbent, double gap) Creates an instance of aSearchStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublegap()Returns the value of thegaprecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theincumbentrecord component.intReturns the value of thenbIterationsrecord component.intReturns the value of thequeueMaxSizerecord component.longReturns the value of therunTimeMsrecord component.status()Returns the value of thestatusrecord component.toCSV()toString()Returns a string representation of this record class.
-
Constructor Details
-
SearchStatistics
public SearchStatistics(SearchStatus status, int nbIterations, int queueMaxSize, long runTimeMs, double incumbent, double gap) Creates an instance of aSearchStatisticsrecord class.- Parameters:
status- the value for thestatusrecord componentnbIterations- the value for thenbIterationsrecord componentqueueMaxSize- the value for thequeueMaxSizerecord componentrunTimeMs- the value for therunTimeMsrecord componentincumbent- the value for theincumbentrecord componentgap- the value for thegaprecord component
-
-
Method Details
-
toCSV
-
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 '=='. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
nbIterations
public int nbIterations()Returns the value of thenbIterationsrecord component.- Returns:
- the value of the
nbIterationsrecord component
-
queueMaxSize
public int queueMaxSize()Returns the value of thequeueMaxSizerecord component.- Returns:
- the value of the
queueMaxSizerecord component
-
runTimeMs
public long runTimeMs()Returns the value of therunTimeMsrecord component.- Returns:
- the value of the
runTimeMsrecord component
-
incumbent
public double incumbent()Returns the value of theincumbentrecord component.- Returns:
- the value of the
incumbentrecord component
-
gap
public double gap()Returns the value of thegaprecord component.- Returns:
- the value of the
gaprecord component
-