public final class BavetScoringUniNode<A> extends BavetAbstractUniNode<A> implements BavetScoringNode
nodeOrder, session
Constructor and Description |
---|
BavetScoringUniNode(BavetConstraintSession session,
int nodeOrder,
BavetAbstractUniNode<A> parentNode,
String constraintPackage,
String constraintName,
Score<?> constraintWeight,
BiFunction<A,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter) |
Modifier and Type | Method and Description |
---|---|
ConstraintMatchTotal |
buildConstraintMatchTotal(Score<?> zeroScore) |
BavetScoringUniTuple<A> |
createTuple(BavetAbstractUniTuple<A> parentTuple) |
String |
getConstraintId() |
String |
getConstraintName() |
String |
getConstraintPackage() |
Score<?> |
getConstraintWeight() |
void |
refresh(BavetScoringUniTuple<A> tuple) |
String |
toString() |
addChildNode
getNodeOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNodeOrder
public BavetScoringUniNode(BavetConstraintSession session, int nodeOrder, BavetAbstractUniNode<A> parentNode, String constraintPackage, String constraintName, Score<?> constraintWeight, BiFunction<A,Consumer<Score<?>>,UndoScoreImpacter> scoreImpacter)
public BavetScoringUniTuple<A> createTuple(BavetAbstractUniTuple<A> parentTuple)
createTuple
in class BavetAbstractUniNode<A>
public void refresh(BavetScoringUniTuple<A> 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.