Interface VariableListener<Solution_,Entity_>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationEntity_-
- All Superinterfaces:
AbstractVariableListener<Solution_,Entity_>,AutoCloseable,Closeable
- All Known Subinterfaces:
CustomShadowVariable.NullVariableListener
- All Known Implementing Classes:
AnchorVariableListener,CollectionInverseVariableListener,ExternalizedAnchorVariableSupply,ExternalizedCollectionInverseVariableSupply,ExternalizedSingletonInverseVariableSupply,SingletonInverseVariableListener
public interface VariableListener<Solution_,Entity_> extends AbstractVariableListener<Solution_,Entity_>
A listener sourced on a basicPlanningVariable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidafterVariableChanged(ScoreDirector<Solution_> scoreDirector, Entity_ entity)voidbeforeVariableChanged(ScoreDirector<Solution_> scoreDirector, Entity_ entity)-
Methods inherited from interface org.optaplanner.core.api.domain.variable.AbstractVariableListener
afterEntityAdded, afterEntityRemoved, beforeEntityAdded, beforeEntityRemoved, close, requiresUniqueEntityEvents, resetWorkingSolution
-
-
-
-
Method Detail
-
beforeVariableChanged
void beforeVariableChanged(ScoreDirector<Solution_> scoreDirector, Entity_ entity)
- Parameters:
scoreDirector- never nullentity- never null
-
afterVariableChanged
void afterVariableChanged(ScoreDirector<Solution_> scoreDirector, Entity_ entity)
- Parameters:
scoreDirector- never nullentity- never null
-
-