OptaPlanner distribution 6.0.0.CR1

org.optaplanner.examples.travelingtournament.solver.move.factory
Class InverseMatchSwapMoveFilter

java.lang.Object
  extended by org.optaplanner.examples.travelingtournament.solver.move.factory.InverseMatchSwapMoveFilter
All Implemented Interfaces:
SelectionFilter<SwapMove>

public class InverseMatchSwapMoveFilter
extends Object
implements SelectionFilter<SwapMove>


Constructor Summary
InverseMatchSwapMoveFilter()
           
 
Method Summary
 boolean accept(ScoreDirector scoreDirector, SwapMove move)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InverseMatchSwapMoveFilter

public InverseMatchSwapMoveFilter()
Method Detail

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 to
move - 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

OptaPlanner distribution 6.0.0.CR1

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