Class BavetScoringBiNode<A,B>
- java.lang.Object
-
- org.optaplanner.core.impl.score.stream.bavet.common.BavetAbstractNode
-
- org.optaplanner.core.impl.score.stream.bavet.bi.BavetAbstractBiNode<A,B>
-
- org.optaplanner.core.impl.score.stream.bavet.bi.BavetScoringBiNode<A,B>
-
- All Implemented Interfaces:
BavetNode,BavetScoringNode
public final class BavetScoringBiNode<A,B> extends BavetAbstractBiNode<A,B> implements BavetScoringNode
-
-
Field Summary
-
Fields inherited from class org.optaplanner.core.impl.score.stream.bavet.common.BavetAbstractNode
nodeIndex, session
-
-
Constructor Summary
Constructors Constructor Description BavetScoringBiNode(BavetConstraintSession session, int nodeIndex, String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Score_ extends Score<Score_>>
ConstraintMatchTotal<Score_>buildConstraintMatchTotal(Score_ zeroScore)BavetScoringBiTuple<A,B>createTuple(BavetAbstractBiTuple<A,B> parentTuple)StringgetConstraintId()StringgetConstraintName()StringgetConstraintPackage()Score<?>getConstraintWeight()voidrefresh(BavetAbstractTuple uncastTuple)StringtoString()-
Methods inherited from class org.optaplanner.core.impl.score.stream.bavet.bi.BavetAbstractBiNode
addChildNode, getChildNodeList
-
Methods inherited from class org.optaplanner.core.impl.score.stream.bavet.common.BavetAbstractNode
getNodeIndex
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.optaplanner.core.impl.score.stream.bavet.common.BavetNode
getNodeIndex
-
-
-
-
Constructor Detail
-
BavetScoringBiNode
public BavetScoringBiNode(BavetConstraintSession session, int nodeIndex, String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter)
-
-
Method Detail
-
createTuple
public BavetScoringBiTuple<A,B> createTuple(BavetAbstractBiTuple<A,B> parentTuple)
- Specified by:
createTuplein classBavetAbstractBiNode<A,B>
-
refresh
public void refresh(BavetAbstractTuple uncastTuple)
- Specified by:
refreshin classBavetAbstractNode
-
buildConstraintMatchTotal
public <Score_ extends Score<Score_>> ConstraintMatchTotal<Score_> buildConstraintMatchTotal(Score_ zeroScore)
- Specified by:
buildConstraintMatchTotalin interfaceBavetScoringNode- Type Parameters:
Score_- theScoretype- Parameters:
zeroScore- never null- Returns:
- never null
-
getConstraintPackage
public String getConstraintPackage()
- Specified by:
getConstraintPackagein interfaceBavetScoringNode- Returns:
- never null
-
getConstraintName
public String getConstraintName()
- Specified by:
getConstraintNamein interfaceBavetScoringNode- Returns:
- never null
-
getConstraintId
public String getConstraintId()
- Specified by:
getConstraintIdin interfaceBavetScoringNode- Returns:
- never null
-
getConstraintWeight
public Score<?> getConstraintWeight()
- Specified by:
getConstraintWeightin interfaceBavetScoringNode- Returns:
- never null
-
-