Class InvestmentQuantityTransferMove
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.move.AbstractMove<InvestmentSolution>
-
- org.optaplanner.examples.investment.solver.move.InvestmentQuantityTransferMove
-
- All Implemented Interfaces:
org.optaplanner.core.impl.heuristic.move.Move<InvestmentSolution>
public class InvestmentQuantityTransferMove extends org.optaplanner.core.impl.heuristic.move.AbstractMove<InvestmentSolution>
-
-
Constructor Summary
Constructors Constructor Description InvestmentQuantityTransferMove(AssetClassAllocation fromAssetClassAllocation, AssetClassAllocation toAssetClassAllocation, long transferMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvestmentQuantityTransferMove
createUndoMove(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
protected void
doMoveOnGenuineVariables(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
Collection<? extends Object>
getPlanningEntities()
Collection<? extends Object>
getPlanningValues()
boolean
isMoveDoable(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
InvestmentQuantityTransferMove
rebase(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> destinationScoreDirector)
String
toString()
-
Methods inherited from class org.optaplanner.core.impl.heuristic.move.AbstractMove
doMove, rebaseArray, rebaseList
-
-
-
-
Constructor Detail
-
InvestmentQuantityTransferMove
public InvestmentQuantityTransferMove(AssetClassAllocation fromAssetClassAllocation, AssetClassAllocation toAssetClassAllocation, long transferMillis)
-
-
Method Detail
-
isMoveDoable
public boolean isMoveDoable(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
-
createUndoMove
public InvestmentQuantityTransferMove createUndoMove(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
- Specified by:
createUndoMove
in classorg.optaplanner.core.impl.heuristic.move.AbstractMove<InvestmentSolution>
-
doMoveOnGenuineVariables
protected void doMoveOnGenuineVariables(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> scoreDirector)
- Specified by:
doMoveOnGenuineVariables
in classorg.optaplanner.core.impl.heuristic.move.AbstractMove<InvestmentSolution>
-
rebase
public InvestmentQuantityTransferMove rebase(org.optaplanner.core.api.score.director.ScoreDirector<InvestmentSolution> destinationScoreDirector)
-
getPlanningEntities
public Collection<? extends Object> getPlanningEntities()
-
getPlanningValues
public Collection<? extends Object> getPlanningValues()
-
-