org.optaplanner.examples.nurserostering.domain.solver
Class MovableShiftAssignmentSelectionFilter
java.lang.Object
org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter
- All Implemented Interfaces:
- SelectionFilter<ShiftAssignment>
public class MovableShiftAssignmentSelectionFilter
- extends Object
- implements SelectionFilter<ShiftAssignment>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MovableShiftAssignmentSelectionFilter
public MovableShiftAssignmentSelectionFilter()
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 toshiftAssignment
- 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)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.