org.optaplanner.examples.travelingtournament.solver.move.factory
Class InverseMatchSwapMoveFilter
java.lang.Object
org.optaplanner.examples.travelingtournament.solver.move.factory.InverseMatchSwapMoveFilter
- All Implemented Interfaces:
- SelectionFilter<SwapMove>
public class InverseMatchSwapMoveFilter
- extends Object
- implements SelectionFilter<SwapMove>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InverseMatchSwapMoveFilter
public InverseMatchSwapMoveFilter()
accept
public boolean accept(ScoreDirector scoreDirector,
SwapMove move)
- Specified by:
accept
in interface SelectionFilter<SwapMove>
- Parameters:
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
to which the selection belongs or applies tomove
- 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
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.