org.drools.planner.core.heuristic.selector.common.decorator
Interface SelectionFilter<T>
- All Known Subinterfaces:
- PlanningEntity.NullMovableEntitySelectionFilter
public interface SelectionFilter<T>
Decide on keeping or discarding a selection
(which is a PlanningEntity
, a planningValue, a Move
or a Selector
).
A filtered selection is considered as not selected, it does not count as an unaccepted selection.
accept
boolean accept(ScoreDirector scoreDirector,
T selection)
- Parameters:
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselection
- never null, a PlanningEntity
, a planningValue, a Move
or a Selector
to create the probabilityWeight for
- Returns:
- true if the selection is accepted, false if the selection should be discarded
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.