Class ListVariableTracker.TrackerDemand
java.lang.Object
ai.timefold.solver.core.impl.domain.variable.listener.support.violation.ListVariableTracker.TrackerDemand
- All Implemented Interfaces:
Demand<ListVariableTracker<Solution_>>
- Enclosing class:
- ListVariableTracker<Solution_>
public class ListVariableTracker.TrackerDemand
extends Object
implements Demand<ListVariableTracker<Solution_>>
In order for the
ListVariableTracker to be registered as a variable listener,
it needs to be passed to the InnerScoreDirector.getSupplyManager(), which requires a Demand.
Unlike most other Demands, there will only be one instance of
ListVariableTracker in the InnerScoreDirector for each list variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExternalizedSupply(SupplyManager supplyManager) Only called if the domain model doesn't already support the demand (through a shadow variable usually).
-
Constructor Details
-
TrackerDemand
public TrackerDemand()
-
-
Method Details
-
createExternalizedSupply
Description copied from interface:DemandOnly called if the domain model doesn't already support the demand (through a shadow variable usually). Equal demands share the sameSupply.- Specified by:
createExternalizedSupplyin interfaceDemand<ListVariableTracker<Solution_>>- Parameters:
supplyManager- never null- Returns:
- never null
-