import org.optaplanner.examples.projectjobscheduling.domain.JobType;
public class NotSourceOrSinkAllocationFilter implements SelectionFilter<Allocation> {
public boolean accept(ScoreDirector scoreDirector, Allocation allocation) {
JobType jobType = allocation.getJob().getJobType();
return jobType != JobType.SOURCE && jobType != JobType.SINK;
}