Annotation Type ProblemFactProperty
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface ProblemFactProperty
Specifies that a property (or a field) on aPlanningSolutionclass is a problem fact. A problem fact must not change during solving (except through aProblemFactChangeevent).The constraints in a
ConstraintProviderrely on problem facts forConstraintFactory.from(Class). Alternatively, scoreDRL relies on problem facts too.Do not annotate a
planning entityor aplanning paramerizationas a problem fact: they are automatically available as facts forConstraintFactory.from(Class)or DRL.- See Also:
ProblemFactCollectionProperty