Class AbstractScorer<Tuple_ extends Tuple>
java.lang.Object
org.optaplanner.constraint.streams.bavet.common.AbstractScorer<Tuple_>
- All Implemented Interfaces:
TupleLifecycle<Tuple_>
public abstract class AbstractScorer<Tuple_ extends Tuple>
extends Object
implements TupleLifecycle<Tuple_>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractScorer(String constraintPackage, String constraintName, Score<?> constraintWeight, 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
-
Constructor Details
-
AbstractScorer
-
-
Method Details
-
insert
- Specified by:
insertin interfaceTupleLifecycle<Tuple_ extends Tuple>
-
update
- Specified by:
updatein interfaceTupleLifecycle<Tuple_ extends Tuple>
-
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 Tuple>
-
toString
-