Interface SelectionFilter<Solution_,T>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationT
- the selection type
- All Known Implementing Classes:
CompositeSelectionFilter
,MovableChainedTrailingValueFilter
,NullValueReinitializeVariableEntityFilter
,PinEntityFilter
public interface SelectionFilter<Solution_,T>
Decides on accepting or discarding a selection (which is aPlanningEntity
, a planningValue, aMove
or aSelector
). For example, a pinnedPlanningEntity
is rejected and therefore never used in aMove
.A filtered selection is considered as not selected, it does not count as an unaccepted selection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
accept(ScoreDirector<Solution_> scoreDirector, T selection)
-
-
-
Method Detail
-
accept
boolean accept(ScoreDirector<Solution_> scoreDirector, T selection)
- Parameters:
scoreDirector
- never null, theScoreDirector
which has theScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselection
- never null, aPlanningEntity
, a planningValue, aMove
or aSelector
- Returns:
- true if the selection is accepted (for example it is movable), false if the selection will be discarded (for example it is pinned)
-
-