org.optaplanner.examples.nurserostering.solver.move
Class ShiftAssignmentSwapMove
java.lang.Object
org.optaplanner.examples.nurserostering.solver.move.ShiftAssignmentSwapMove
- All Implemented Interfaces:
- org.optaplanner.core.impl.heuristic.move.Move
public class ShiftAssignmentSwapMove
- extends Object
- implements org.optaplanner.core.impl.heuristic.move.Move
ShiftAssignmentSwapMove
public ShiftAssignmentSwapMove(ShiftAssignment leftShiftAssignment,
ShiftAssignment rightShiftAssignment)
isMoveDoable
public boolean isMoveDoable(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector)
- Specified by:
isMoveDoable in interface org.optaplanner.core.impl.heuristic.move.Move
createUndoMove
public org.optaplanner.core.impl.heuristic.move.Move createUndoMove(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector)
- Specified by:
createUndoMove in interface org.optaplanner.core.impl.heuristic.move.Move
doMove
public void doMove(org.optaplanner.core.impl.score.director.ScoreDirector scoreDirector)
- Specified by:
doMove in interface org.optaplanner.core.impl.heuristic.move.Move
getPlanningEntities
public Collection<? extends Object> getPlanningEntities()
- Specified by:
getPlanningEntities in interface org.optaplanner.core.impl.heuristic.move.Move
getPlanningValues
public Collection<? extends Object> getPlanningValues()
- Specified by:
getPlanningValues in interface org.optaplanner.core.impl.heuristic.move.Move
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.