org.optaplanner.examples.projectjobscheduling.domain.solver
Class NotSourceOrSinkAllocationFilter
java.lang.Object
org.optaplanner.examples.projectjobscheduling.domain.solver.NotSourceOrSinkAllocationFilter
- All Implemented Interfaces:
- SelectionFilter<Allocation>
public class NotSourceOrSinkAllocationFilter
- extends Object
- implements SelectionFilter<Allocation>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotSourceOrSinkAllocationFilter
public NotSourceOrSinkAllocationFilter()
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 toallocation
- 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.