public final class DroolsConstraintFactory<Solution_> extends Object implements InnerConstraintFactory<Solution_>
| Constructor and Description |
|---|
DroolsConstraintFactory(SolutionDescriptor<Solution_> solutionDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
ConstraintSessionFactory<Solution_> |
buildSessionFactory(Constraint[] constraints)
This method is thread-safe.
|
<A> UniConstraintStream<A> |
fromUnfiltered(Class<A> fromClass)
Like
ConstraintFactory.from(Class),
but without any filtering of uninitialized planning entities. |
String |
getDefaultConstraintPackage()
This is
ConstraintConfiguration.constraintPackage() if available,
otherwise the package of the PlanningSolution class. |
SolutionDescriptor<Solution_> |
getSolutionDescriptor() |
LongSupplier |
getVariableIdSupplier()
In order to guarantee that all variables have unique names within the context of a rule, we need to be able to
uniquely identify them.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, fromUniquePairfromUniquePair, fromUniquePair, fromUniquePair, fromUniquePair, fromUniquePairpublic DroolsConstraintFactory(SolutionDescriptor<Solution_> solutionDescriptor)
public <A> UniConstraintStream<A> fromUnfiltered(Class<A> fromClass)
ConstraintFactoryConstraintFactory.from(Class),
but without any filtering of uninitialized planning entities.fromUnfiltered in interface ConstraintFactoryA - the type of the matched problem fact or planning entityfromClass - never nullpublic ConstraintSessionFactory<Solution_> buildSessionFactory(Constraint[] constraints)
InnerConstraintFactorybuildSessionFactory in interface InnerConstraintFactory<Solution_>constraints - never nullpublic SolutionDescriptor<Solution_> getSolutionDescriptor()
getSolutionDescriptor in interface InnerConstraintFactory<Solution_>public LongSupplier getVariableIdSupplier()
public String getDefaultConstraintPackage()
ConstraintFactoryConstraintConfiguration.constraintPackage() if available,
otherwise the package of the PlanningSolution class.getDefaultConstraintPackage in interface ConstraintFactoryCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.