Class VariableTracker.TrackerDemand
java.lang.Object
ai.timefold.solver.core.impl.domain.variable.listener.support.violation.VariableTracker.TrackerDemand
- All Implemented Interfaces:
Demand<VariableTracker<Solution_>>
- Enclosing class:
- VariableTracker<Solution_>
public class VariableTracker.TrackerDemand
extends Object
implements Demand<VariableTracker<Solution_>>
In order for the
VariableTracker 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
VariableTracker in the InnerScoreDirector for each 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<VariableTracker<Solution_>>- Parameters:
supplyManager- never null- Returns:
- never null
-