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