public abstract class BavetAbstractConstraintStream<Solution_> extends Object implements ConstraintStream
Modifier and Type | Field and Description |
---|---|
protected BavetConstraintFactory<Solution_> |
constraintFactory |
Constructor and Description |
---|
BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory) |
Modifier and Type | Method and Description |
---|---|
protected BavetConstraint<Solution_> |
buildConstraint(String constraintPackage,
String constraintName,
Score<?> constraintWeight,
boolean positive) |
protected BavetConstraint<Solution_> |
buildConstraintConfigurable(String constraintPackage,
String constraintName,
boolean positive) |
protected Function<Solution_,Score<?>> |
buildConstraintWeightExtractor(String constraintPackage,
String constraintName) |
protected Function<Solution_,Score<?>> |
buildConstraintWeightExtractor(String constraintPackage,
String constraintName,
Score<?> constraintWeight) |
BavetConstraintFactory<Solution_> |
getConstraintFactory()
The
ConstraintFactory that build this. |
abstract List<BavetFromUniConstraintStream<Solution_,Object>> |
getFromStreamList() |
protected void |
validateConstraintId(String constraintPackage,
String constraintName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
penalize, penalize, penalizeConfigurable, penalizeConfigurable, reward, reward, rewardConfigurable, rewardConfigurable
protected final BavetConstraintFactory<Solution_> constraintFactory
public BavetAbstractConstraintStream(BavetConstraintFactory<Solution_> constraintFactory)
protected Function<Solution_,Score<?>> buildConstraintWeightExtractor(String constraintPackage, String constraintName)
protected Function<Solution_,Score<?>> buildConstraintWeightExtractor(String constraintPackage, String constraintName, Score<?> constraintWeight)
protected void validateConstraintId(String constraintPackage, String constraintName)
protected BavetConstraint<Solution_> buildConstraint(String constraintPackage, String constraintName, Score<?> constraintWeight, boolean positive)
protected BavetConstraint<Solution_> buildConstraintConfigurable(String constraintPackage, String constraintName, boolean positive)
public abstract List<BavetFromUniConstraintStream<Solution_,Object>> getFromStreamList()
public BavetConstraintFactory<Solution_> getConstraintFactory()
ConstraintStream
ConstraintFactory
that build this.getConstraintFactory
in interface ConstraintStream
Copyright © 2006–2019 JBoss by Red Hat. All rights reserved.