Solution_
- the solution type, the class with the PlanningSolution
annotationT
- the selection typepublic interface SelectionFilter<Solution_,T>
PlanningEntity
, a planningValue, a Move
or a Selector
).
For example, an immovable PlanningEntity
is rejected and therefore never used in a Move
.
A filtered selection is considered as not selected, it does not count as an unaccepted selection.
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ScoreDirector<Solution_> scoreDirector,
T selection) |
boolean accept(ScoreDirector<Solution_> scoreDirector, T selection)
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
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.