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(ai.timefold.solver.core.api.score.director.ScoreDirector<Solution_>) and AbstractVariableListener.close().
Specialized notifiables use Notifications 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 TypeMethodDescriptionvoidClear all notifications without triggering any related event logic.voidClose the variable listener.voidNotify the variable listener about working solution reset.voidTrigger all queued notifications.
-
Method Details
-
resetWorkingSolution
void resetWorkingSolution()Notify the variable listener about working solution reset. -
clearAllNotifications
void clearAllNotifications()Clear all notifications without triggering any related event logic. -
triggerAllNotifications
void triggerAllNotifications()Trigger all queued notifications. -
closeVariableListener
void closeVariableListener()Close the variable listener.
-