Class VariableListenerSupport<Solution_>

  • Type Parameters:
    Solution_ - the solution type, the class with the PlanningSolution annotation
    All Implemented Interfaces:
    SupplyManager<Solution_>

    public final class VariableListenerSupport<Solution_>
    extends Object
    implements SupplyManager<Solution_>
    • Method Detail

      • linkVariableListeners

        public void linkVariableListeners()
      • demand

        public <Supply_ extends Supply> Supply_ demand​(Demand<Solution_,​Supply_> demand)
        Description copied from interface: SupplyManager
        Returns the Supply for a Demand, preferably an existing one. If the Supply doesn't exist yet (as part of the domain model or externalized), it creates and attaches it.
        Specified by:
        demand in interface SupplyManager<Solution_>
        Type Parameters:
        Supply_ - Subclass of Supply
        Parameters:
        demand - never null
        Returns:
        never null
      • resetWorkingSolution

        public void resetWorkingSolution()
      • close

        public void close()
      • triggerVariableListenersInNotificationQueues

        public void triggerVariableListenersInNotificationQueues()
      • forceTriggerAllVariableListeners

        public void forceTriggerAllVariableListeners()
      • assertNotificationQueuesAreEmpty

        public void assertNotificationQueuesAreEmpty()