Annotation Type ValueRangeProvider
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface ValueRangeProvider
Provides the planning values that can be used for aPlanningVariable
.This is specified on a getter of a java bean property (or directly on a field) which returns a
Collection
orValueRange
. ACollection
is implicitly converted to aValueRange
.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description String
id
Used byPlanningVariable.valueRangeProviderRefs()
to map aPlanningVariable
to aValueRangeProvider
.
-
-
-
Element Detail
-
id
String id
Used byPlanningVariable.valueRangeProviderRefs()
to map aPlanningVariable
to aValueRangeProvider
. If not provided, an attempt will be made to find a matchingPlanningVariable
without a ref.- Returns:
- if provided, must be unique across a
SolverFactory
- Default:
- ""
-
-