public final class BavetScoringBiNode<A,B> extends BavetAbstractBiNode<A,B> implements BavetScoringNode
nodeOrder, session
Constructor and Description |
---|
BavetScoringBiNode(BavetConstraintSession session,
int nodeOrder,
String constraintPackage,
String constraintName,
Score<?> constraintWeight,
TriFunction<A,B,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter) |
Modifier and Type | Method and Description |
---|---|
ConstraintMatchTotal |
buildConstraintMatchTotal(Score<?> zeroScore) |
BavetScoringBiTuple<A,B> |
createTuple(BavetAbstractBiTuple<A,B> parentTuple) |
String |
getConstraintId() |
String |
getConstraintName() |
String |
getConstraintPackage() |
Score<?> |
getConstraintWeight() |
void |
refresh(BavetScoringBiTuple<A,B> tuple) |
String |
toString() |
addChildNode
getNodeOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNodeOrder
public BavetScoringBiNode(BavetConstraintSession session, int nodeOrder, String constraintPackage, String constraintName, Score<?> constraintWeight, TriFunction<A,B,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter)
public BavetScoringBiTuple<A,B> createTuple(BavetAbstractBiTuple<A,B> parentTuple)
createTuple
in class BavetAbstractBiNode<A,B>
public void refresh(BavetScoringBiTuple<A,B> tuple)
public ConstraintMatchTotal buildConstraintMatchTotal(Score<?> zeroScore)
buildConstraintMatchTotal
in interface BavetScoringNode
zeroScore
- never nullpublic String getConstraintPackage()
getConstraintPackage
in interface BavetScoringNode
public String getConstraintName()
getConstraintName
in interface BavetScoringNode
public String getConstraintId()
getConstraintId
in interface BavetScoringNode
public Score<?> getConstraintWeight()
getConstraintWeight
in interface BavetScoringNode
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.