Class IndexVariableDemand<Solution_>
- java.lang.Object
-
- ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand<Solution_,IndexVariableSupply>
-
- ai.timefold.solver.core.impl.domain.variable.index.IndexVariableDemand<Solution_>
-
- All Implemented Interfaces:
Demand<IndexVariableSupply>
public final class IndexVariableDemand<Solution_> extends AbstractVariableDescriptorBasedDemand<Solution_,IndexVariableSupply>
-
-
Field Summary
-
Fields inherited from class ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand
variableDescriptor
-
-
Constructor Summary
Constructors Constructor Description IndexVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexVariableSupplycreateExternalizedSupply(SupplyManager supplyManager)Only called if the domain model doesn't already support the demand (through a shadow variable usually).-
Methods inherited from class ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
IndexVariableDemand
public IndexVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor)
-
-
Method Detail
-
createExternalizedSupply
public IndexVariableSupply createExternalizedSupply(SupplyManager supplyManager)
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.- Parameters:
supplyManager- never null- Returns:
- never null
-
-