Record Class ProfilingPropagator
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.bavet.common.ProfilingPropagator
- All Implemented Interfaces:
Propagator
public record ProfilingPropagator(InnerConstraintProfiler profiler, ConstraintNodeProfileId profileId, Propagator delegate)
extends Record
implements Propagator
-
Constructor Summary
ConstructorsConstructorDescriptionProfilingPropagator(InnerConstraintProfiler profiler, ConstraintNodeProfileId profileId, Propagator delegate) Creates an instance of aProfilingPropagatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprofileIdrecord component.profiler()Returns the value of theprofilerrecord component.voidMust by preceded byPropagator.propagateRetracts()andPropagator.propagateUpdates().voidStarts the propagation event.voidMust be preceded byPropagator.propagateRetracts()and followed byPropagator.propagateInserts().final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.bavet.common.Propagator
propagateEverything
-
Constructor Details
-
ProfilingPropagator
public ProfilingPropagator(InnerConstraintProfiler profiler, ConstraintNodeProfileId profileId, Propagator delegate) Creates an instance of aProfilingPropagatorrecord class.- Parameters:
profiler- the value for theprofilerrecord componentprofileId- the value for theprofileIdrecord componentdelegate- the value for thedelegaterecord component
-
-
Method Details
-
propagateRetracts
public void propagateRetracts()Description copied from interface:PropagatorStarts the propagation event. Must be followed byPropagator.propagateUpdates().- Specified by:
propagateRetractsin interfacePropagator
-
propagateUpdates
public void propagateUpdates()Description copied from interface:PropagatorMust be preceded byPropagator.propagateRetracts()and followed byPropagator.propagateInserts().- Specified by:
propagateUpdatesin interfacePropagator
-
propagateInserts
public void propagateInserts()Description copied from interface:PropagatorMust by preceded byPropagator.propagateRetracts()andPropagator.propagateUpdates(). Ends the propagation event and clears the queue.- Specified by:
propagateInsertsin interfacePropagator
-
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). -
profiler
Returns the value of theprofilerrecord component.- Returns:
- the value of the
profilerrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-