Class BedChangeMove
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.move.AbstractMove<PatientAdmissionSchedule>
-
- org.optaplanner.examples.pas.solver.move.BedChangeMove
-
- All Implemented Interfaces:
org.optaplanner.core.impl.heuristic.move.Move<PatientAdmissionSchedule>
public class BedChangeMove extends org.optaplanner.core.impl.heuristic.move.AbstractMove<PatientAdmissionSchedule>
-
-
Constructor Summary
Constructors Constructor Description BedChangeMove(BedDesignation bedDesignation, Bed toBed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BedChangeMovecreateUndoMove(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)protected voiddoMoveOnGenuineVariables(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)booleanequals(Object o)Collection<? extends Object>getPlanningEntities()Collection<? extends Object>getPlanningValues()inthashCode()booleanisMoveDoable(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)BedChangeMoverebase(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> destinationScoreDirector)StringtoString()-
Methods inherited from class org.optaplanner.core.impl.heuristic.move.AbstractMove
doMove, rebaseArray, rebaseList
-
-
-
-
Constructor Detail
-
BedChangeMove
public BedChangeMove(BedDesignation bedDesignation, Bed toBed)
-
-
Method Detail
-
isMoveDoable
public boolean isMoveDoable(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)
-
createUndoMove
public BedChangeMove createUndoMove(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)
- Specified by:
createUndoMovein classorg.optaplanner.core.impl.heuristic.move.AbstractMove<PatientAdmissionSchedule>
-
doMoveOnGenuineVariables
protected void doMoveOnGenuineVariables(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> scoreDirector)
- Specified by:
doMoveOnGenuineVariablesin classorg.optaplanner.core.impl.heuristic.move.AbstractMove<PatientAdmissionSchedule>
-
rebase
public BedChangeMove rebase(org.optaplanner.core.api.score.director.ScoreDirector<PatientAdmissionSchedule> destinationScoreDirector)
-
getPlanningEntities
public Collection<? extends Object> getPlanningEntities()
-
getPlanningValues
public Collection<? extends Object> getPlanningValues()
-
-