OptaPlanner distribution 6.0.1.Final

org.optaplanner.examples.nurserostering.domain.solver
Class MovableShiftAssignmentSelectionFilter

java.lang.Object
  extended by org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter
All Implemented Interfaces:
SelectionFilter<ShiftAssignment>

public class MovableShiftAssignmentSelectionFilter
extends Object
implements SelectionFilter<ShiftAssignment>


Constructor Summary
MovableShiftAssignmentSelectionFilter()
           
 
Method Summary
 boolean accept(NurseRoster nurseRoster, ShiftAssignment shiftAssignment)
           
 boolean accept(ScoreDirector scoreDirector, ShiftAssignment shiftAssignment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovableShiftAssignmentSelectionFilter

public MovableShiftAssignmentSelectionFilter()
Method Detail

accept

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

accept

public boolean accept(NurseRoster nurseRoster,
                      ShiftAssignment shiftAssignment)

OptaPlanner distribution 6.0.1.Final

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