Record Class DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_>
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.domain.variable.declarative.DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_>
- Enclosing class:
- DefaultShadowVariableSessionFactory<Solution_>
public static record DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_>(ConsistencyTracker<Solution_> consistencyTracker, SolutionDescriptor<Solution_> solutionDescriptor, VariableReferenceGraphBuilder<Solution_> variableReferenceGraphBuilder, Object[] entities, IntFunction<TopologicalOrderGraph> graphCreator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGraphDescriptor(SolutionDescriptor<Solution_> solutionDescriptor, ChangedVariableNotifier<Solution_> changedVariableNotifier, Object... entities) GraphDescriptor(ConsistencyTracker<Solution_> consistencyTracker, SolutionDescriptor<Solution_> solutionDescriptor, VariableReferenceGraphBuilder<Solution_> variableReferenceGraphBuilder, Object[] entities, IntFunction<TopologicalOrderGraph> graphCreator) Creates an instance of aGraphDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsistencyTrackerrecord component.Object[]entities()Returns the value of theentitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegraphCreatorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesolutionDescriptorrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariableReferenceGraphBuilderrecord component.withConsistencyTracker(ConsistencyTracker<Solution_> consistencyTracker) withGraphCreator(IntFunction<TopologicalOrderGraph> graphCreator)
-
Constructor Details
-
GraphDescriptor
public GraphDescriptor(SolutionDescriptor<Solution_> solutionDescriptor, ChangedVariableNotifier<Solution_> changedVariableNotifier, Object... entities) -
GraphDescriptor
public GraphDescriptor(ConsistencyTracker<Solution_> consistencyTracker, SolutionDescriptor<Solution_> solutionDescriptor, VariableReferenceGraphBuilder<Solution_> variableReferenceGraphBuilder, Object[] entities, IntFunction<TopologicalOrderGraph> graphCreator) Creates an instance of aGraphDescriptorrecord class.- Parameters:
consistencyTracker- the value for theconsistencyTrackerrecord componentsolutionDescriptor- the value for thesolutionDescriptorrecord componentvariableReferenceGraphBuilder- the value for thevariableReferenceGraphBuilderrecord componententities- the value for theentitiesrecord componentgraphCreator- the value for thegraphCreatorrecord component
-
-
Method Details
-
withGraphCreator
public DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_> withGraphCreator(IntFunction<TopologicalOrderGraph> graphCreator) -
withConsistencyTracker
public DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_> withConsistencyTracker(ConsistencyTracker<Solution_> consistencyTracker) -
assertingNoReferencedMissingEntities
public DefaultShadowVariableSessionFactory.GraphDescriptor<Solution_> assertingNoReferencedMissingEntities() -
changedVariableNotifier
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
consistencyTracker
Returns the value of theconsistencyTrackerrecord component.- Returns:
- the value of the
consistencyTrackerrecord component
-
solutionDescriptor
Returns the value of thesolutionDescriptorrecord component.- Returns:
- the value of the
solutionDescriptorrecord component
-
variableReferenceGraphBuilder
Returns the value of thevariableReferenceGraphBuilderrecord component.- Returns:
- the value of the
variableReferenceGraphBuilderrecord component
-
entities
Returns the value of theentitiesrecord component.- Returns:
- the value of the
entitiesrecord component
-
graphCreator
Returns the value of thegraphCreatorrecord component.- Returns:
- the value of the
graphCreatorrecord component
-