public final class BavetConstraint<Solution_> extends Object implements Constraint
| Constructor and Description |
|---|
BavetConstraint(BavetConstraintFactory<Solution_> constraintFactory,
String constraintPackage,
String constraintName,
Function<Solution_,Score<?>> constraintWeightExtractor,
boolean positive,
List<BavetFromUniConstraintStream<Solution_,Object>> fromStreamList) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNodes(BavetNodeBuildPolicy<Solution_> buildPolicy,
Map<Class<?>,BavetFromUniNode<Object>> declaredClassToNodeMap,
Score<?> constraintWeight) |
Score<?> |
extractConstraintWeight(Solution_ workingSolution) |
BavetConstraintFactory<Solution_> |
getConstraintFactory()
The
ConstraintFactory that build this. |
String |
getConstraintName()
The constraint name.
|
String |
getConstraintPackage()
The constraint package is the namespace of the constraint.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConstraintIdpublic void createNodes(BavetNodeBuildPolicy<Solution_> buildPolicy, Map<Class<?>,BavetFromUniNode<Object>> declaredClassToNodeMap, Score<?> constraintWeight)
public BavetConstraintFactory<Solution_> getConstraintFactory()
ConstraintConstraintFactory that build this.getConstraintFactory in interface Constraintpublic String getConstraintPackage()
Constraint
When using a ConstraintConfiguration,
it is equal to the ConstraintWeight.constraintPackage().
getConstraintPackage in interface Constraintpublic String getConstraintName()
ConstraintConstraint.getConstraintId() is unique.
When using a ConstraintConfiguration,
it is equal to the ConstraintWeight.value().
getConstraintName in interface ConstraintCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.