Class MovableChainedTrailingValueFilter<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.heuristic.selector.value.decorator.MovableChainedTrailingValueFilter<Solution_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotation
- All Implemented Interfaces:
SelectionFilter<Solution_,Object>
public class MovableChainedTrailingValueFilter<Solution_> extends Object implements SelectionFilter<Solution_,Object>
-
-
Constructor Summary
Constructors Constructor Description MovableChainedTrailingValueFilter(GenuineVariableDescriptor<Solution_> variableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(ScoreDirector<Solution_> scoreDirector, Object value)
protected SingletonInverseVariableSupply
retrieveSingletonInverseVariableSupply(ScoreDirector<Solution_> scoreDirector)
-
-
-
Constructor Detail
-
MovableChainedTrailingValueFilter
public MovableChainedTrailingValueFilter(GenuineVariableDescriptor<Solution_> variableDescriptor)
-
-
Method Detail
-
accept
public boolean accept(ScoreDirector<Solution_> scoreDirector, Object value)
- Specified by:
accept
in interfaceSelectionFilter<Solution_,Object>
- Parameters:
scoreDirector
- never null, theScoreDirector
which has theScoreDirector.getWorkingSolution()
to which the selection belongs or applies tovalue
- never null, aPlanningEntity
, a planningValue, aMove
or aSelector
- Returns:
- true if the selection is accepted (for example it is movable), false if the selection will be discarded (for example it is pinned)
-
retrieveSingletonInverseVariableSupply
protected SingletonInverseVariableSupply retrieveSingletonInverseVariableSupply(ScoreDirector<Solution_> scoreDirector)
-
-