OptaPlanner distribution 6.0.1-SNAPSHOT

org.optaplanner.examples.curriculumcourse.solver.move
Class DifferentCourseSwapMoveFilter

java.lang.Object
  extended by org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter
All Implemented Interfaces:
SelectionFilter<SwapMove>

public class DifferentCourseSwapMoveFilter
extends Object
implements SelectionFilter<SwapMove>


Constructor Summary
DifferentCourseSwapMoveFilter()
           
 
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

DifferentCourseSwapMoveFilter

public DifferentCourseSwapMoveFilter()
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.1-SNAPSHOT

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