Interface StatefulVariableListener<Entity_>
-
- All Superinterfaces:
AutoCloseable,Closeable,Supply,VariableListener<Entity_>,VariableListener<Entity_>
- All Known Subinterfaces:
SourcedVariableListener<Entity_>
- All Known Implementing Classes:
ExternalizedAnchorVariableSupply,ExternalizedCollectionInverseVariableSupply,ExternalizedSingletonInverseVariableSupply
@Deprecated public interface StatefulVariableListener<Entity_> extends VariableListener<Entity_>
Deprecated.VariableListenercan now be stateful too.A statefulVariableListener, often used to externalize data for aSupplyfrom the domain model itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclearWorkingSolution(ScoreDirector scoreDirector)Deprecated.ImplementVariableListener.close()instead.VariableDescriptorgetSourceVariableDescriptor()Deprecated.voidresetWorkingSolution(ScoreDirector scoreDirector)Deprecated.-
Methods inherited from interface org.optaplanner.core.api.domain.variable.VariableListener
close
-
Methods inherited from interface org.optaplanner.core.impl.domain.variable.listener.VariableListener
afterEntityAdded, afterEntityRemoved, afterVariableChanged, beforeEntityAdded, beforeEntityRemoved, beforeVariableChanged, requiresUniqueEntityEvents
-
-
-
-
Method Detail
-
getSourceVariableDescriptor
VariableDescriptor getSourceVariableDescriptor()
Deprecated.
-
resetWorkingSolution
@Deprecated void resetWorkingSolution(ScoreDirector scoreDirector)
Deprecated.Description copied from interface:VariableListenerCalled when the entire working solution changes. In this event, the other before..()/after...() methods will not be called. At this point, implementations should clear state, if any.- Specified by:
resetWorkingSolutionin interfaceVariableListener<Entity_>- Parameters:
scoreDirector-
-
clearWorkingSolution
@Deprecated default void clearWorkingSolution(ScoreDirector scoreDirector)
Deprecated.ImplementVariableListener.close()instead.- Parameters:
scoreDirector-
-
-