Interface VariableListener<Solution_,Entity_>
-
- Type Parameters:
Solution_
- the solution type, the class with thePlanningSolution
annotationEntity_
-
- 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 void
afterVariableChanged(ScoreDirector<Solution_> scoreDirector, Entity_ entity)
void
beforeVariableChanged(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
-
-