Annotation Type ProblemFactCollectionProperty
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface ProblemFactCollectionProperty
Specifies that a property (or a field) on aPlanningSolution
class is aCollection
of problem facts. A problem fact must not change during solving (except through aProblemFactChange
event).The constraints in a
ConstraintProvider
rely on problem facts forConstraintFactory.forEach(Class)
. Alternatively, scoreDRL relies on problem facts too.Do not annotate
planning entities
as problem facts: they are automatically available as facts forConstraintFactory.forEach(Class)
or DRL.- See Also:
ProblemFactProperty