Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.1.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.heuristic.selector.common.decorator
Interface SelectionFilter<T>

All Known Subinterfaces:
  PlanningEntity.NullMovableEntitySelectionFilter, PlanningVariable.NullReinitializeVariableEntityFilter

All Known Implementing Classes:
  DifferentCourseSwapMoveFilter, DifferentGenderSwapMoveFilter, InverseMatchSwapMoveFilter, MovableLectureSelectionFilter, MovableShiftAssignmentSelectionFilter, MovableTeamAssignmentSelectionFilter, NotSourceOrSinkAllocationFilter, NullValueReinitializeVariableEntityFilter

    public interface SelectionFilter<T>

Decides 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.

Method Summary
`boolean` | `accept(ScoreDirector scoreDirector, T selection)`

Method Detail

### 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 to
    `selection` - never null, a `PlanningEntity`, a planningValue, a `Move` or a `Selector`
  Returns:
    true if the selection is accepted, false if the selection should be discarded

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.1.0.Beta4
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.