Record Class AlgorithmDependencies<G>
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.plugins.AlgorithmDependencies<G>
public record AlgorithmDependencies<G>(Representation<G> representation, Problem<G> problem, Model<G> model, SelectionPolicy<G> selectionPolicy, ReplacementPolicy<G> replacementPolicy, StoppingCondition<G> stoppingCondition, ConstraintHandling<G> constraintHandling)
extends Record
Dependency bundle passed to algorithm plugins.
-
Constructor Summary
ConstructorsConstructorDescriptionAlgorithmDependencies(Representation<G> representation, Problem<G> problem, Model<G> model, SelectionPolicy<G> selectionPolicy, ReplacementPolicy<G> replacementPolicy, StoppingCondition<G> stoppingCondition, ConstraintHandling<G> constraintHandling) Creates an instance of aAlgorithmDependenciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconstraintHandlingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.problem()Returns the value of theproblemrecord component.Returns the value of thereplacementPolicyrecord component.Returns the value of therepresentationrecord component.Returns the value of theselectionPolicyrecord component.Returns the value of thestoppingConditionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AlgorithmDependencies
public AlgorithmDependencies(Representation<G> representation, Problem<G> problem, Model<G> model, SelectionPolicy<G> selectionPolicy, ReplacementPolicy<G> replacementPolicy, StoppingCondition<G> stoppingCondition, ConstraintHandling<G> constraintHandling) Creates an instance of aAlgorithmDependenciesrecord class.- Parameters:
representation- the value for therepresentationrecord componentproblem- the value for theproblemrecord componentmodel- the value for themodelrecord componentselectionPolicy- the value for theselectionPolicyrecord componentreplacementPolicy- the value for thereplacementPolicyrecord componentstoppingCondition- the value for thestoppingConditionrecord componentconstraintHandling- the value for theconstraintHandlingrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
representation
Returns the value of therepresentationrecord component.- Returns:
- the value of the
representationrecord component
-
problem
-
model
-
selectionPolicy
Returns the value of theselectionPolicyrecord component.- Returns:
- the value of the
selectionPolicyrecord component
-
replacementPolicy
Returns the value of thereplacementPolicyrecord component.- Returns:
- the value of the
replacementPolicyrecord component
-
stoppingCondition
Returns the value of thestoppingConditionrecord component.- Returns:
- the value of the
stoppingConditionrecord component
-
constraintHandling
Returns the value of theconstraintHandlingrecord component.- Returns:
- the value of the
constraintHandlingrecord component
-