Class AbstractScorer<Tuple_ extends AbstractTuple>
java.lang.Object
ai.timefold.solver.constraint.streams.bavet.common.AbstractScorer<Tuple_>
- All Implemented Interfaces:
TupleLifecycle<Tuple_>
public abstract class AbstractScorer<Tuple_ extends AbstractTuple>
extends Object
implements TupleLifecycle<Tuple_>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractScorer(WeightedScoreImpacter<?, ?> weightedScoreImpacter, int inputStoreIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected RuntimeExceptioncreateExceptionOnImpact(Tuple_ tuple, Exception cause) Helps with debugging exceptions thrown by user code during impact calls.protected abstract UndoScoreImpacterfinal voidfinal voidfinal StringtoString()final void
-
Field Details
-
weightedScoreImpacter
-
-
Constructor Details
-
AbstractScorer
-
-
Method Details
-
insert
- Specified by:
insertin interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
update
- Specified by:
updatein interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
impact
-
createExceptionOnImpact
Helps with debugging exceptions thrown by user code during impact calls.- Parameters:
tuple- never nullcause- never null- Returns:
- never null, exception to be thrown.
-
retract
- Specified by:
retractin interfaceTupleLifecycle<Tuple_ extends AbstractTuple>
-
toString
-