Class CompositeSelectionFilter<Solution_,T>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.decorator.CompositeSelectionFilter<Solution_,T>
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationT
- the selection type
- All Implemented Interfaces:
SelectionFilter<Solution_,
T>
public final class CompositeSelectionFilter<Solution_,T>
extends Object
implements SelectionFilter<Solution_,T>
Combines several
SelectionFilter
s into one.
Does a logical AND over the accept status of its filters.-
Constructor Summary
ConstructorDescriptionCompositeSelectionFilter
(List<SelectionFilter<Solution_, T>> selectionFilterList) -
Method Summary
-
Constructor Details
-
CompositeSelectionFilter
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceSelectionFilter<Solution_,
T> - 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)
-
equals
-
hashCode
public int hashCode()
-