Interface Notifiable
- All Known Subinterfaces:
EntityNotifiable<Solution_>
public interface Notifiable
A notifiable’s purpose is to execute variable listener methods. This interface is the most
generalized form of a notifiable. It covers variable listener methods that are executed immediately
(
AbstractVariableListener.resetWorkingSolution(org.optaplanner.core.api.score.director.ScoreDirector<Solution_>)
and AbstractVariableListener.close()
.
Specialized notifiables use Notification
s to record planing variable changes and defer triggering of "after" methods
so that dependent variable listeners can be executed in the correct order.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close the variable listener.void
Notify the variable listener about working solution reset.void
Trigger all queued notifications.
-
Method Details
-
resetWorkingSolution
void resetWorkingSolution()Notify the variable listener about working solution reset. -
triggerAllNotifications
void triggerAllNotifications()Trigger all queued notifications. -
closeVariableListener
void closeVariableListener()Close the variable listener.
-