Record Class ConstantInitialTemperature<M extends Move<S,I>, S extends Solution<S,I>, I extends Instance>
java.lang.Object
java.lang.Record
es.urjc.etsii.grafo.improve.sa.initialt.ConstantInitialTemperature<M,S,I>
- Type Parameters:
M- Move typeS- Your solution classI- Your instance class
- All Implemented Interfaces:
InitialTemperatureCalculator<M,S, I>
public record ConstantInitialTemperature<M extends Move<S,I>, S extends Solution<S,I>, I extends Instance> (double initialTemperature)
extends Record
implements InitialTemperatureCalculator<M,S,I>
Constant initial temperature calculator.
-
Constructor Summary
ConstructorsConstructorDescriptionConstantInitialTemperature(double initialTemperature) Creates an instance of aConstantInitialTemperaturerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleDetermines initial simulated annealing temperaturedoubleReturns the value of theinitialTemperaturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConstantInitialTemperature
public ConstantInitialTemperature(double initialTemperature) Creates an instance of aConstantInitialTemperaturerecord class.- Parameters:
initialTemperature- the value for theinitialTemperaturerecord component
-
-
Method Details
-
initial
Description copied from interface:InitialTemperatureCalculatorDetermines initial simulated annealing temperature -
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
initialTemperature
public double initialTemperature()Returns the value of theinitialTemperaturerecord component.- Returns:
- the value of the
initialTemperaturerecord component
-