OptaPlanner distribution 6.0.1-SNAPSHOT

org.optaplanner.examples.projectjobscheduling.domain.solver
Class NotSourceOrSinkAllocationFilter

java.lang.Object
  extended by org.optaplanner.examples.projectjobscheduling.domain.solver.NotSourceOrSinkAllocationFilter
All Implemented Interfaces:
SelectionFilter<Allocation>

public class NotSourceOrSinkAllocationFilter
extends Object
implements SelectionFilter<Allocation>


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

Constructor Detail

NotSourceOrSinkAllocationFilter

public NotSourceOrSinkAllocationFilter()
Method Detail

accept

public boolean accept(ScoreDirector scoreDirector,
                      Allocation allocation)
Specified by:
accept in interface SelectionFilter<Allocation>
Parameters:
scoreDirector - never null, the ScoreDirector which has the ScoreDirector.getWorkingSolution() to which the selection belongs or applies to
allocation - 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.