OptaPlanner core 6.0.0.Beta3

org.optaplanner.core.impl.heuristic.selector.entity.decorator
Class NullValueReinitializeVariableEntityFilter

java.lang.Object
  extended by org.optaplanner.core.impl.heuristic.selector.entity.decorator.NullValueReinitializeVariableEntityFilter
All Implemented Interfaces:
SelectionFilter<Object>

public class NullValueReinitializeVariableEntityFilter
extends Object
implements SelectionFilter<Object>


Constructor Summary
NullValueReinitializeVariableEntityFilter(PlanningVariableDescriptor variableDescriptor)
           
 
Method Summary
 boolean accept(ScoreDirector scoreDirector, Object selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullValueReinitializeVariableEntityFilter

public NullValueReinitializeVariableEntityFilter(PlanningVariableDescriptor variableDescriptor)
Method Detail

accept

public boolean accept(ScoreDirector scoreDirector,
                      Object selection)
Specified by:
accept in interface SelectionFilter<Object>
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

OptaPlanner core 6.0.0.Beta3

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