Class AnchorVariableDemand<Solution_>
- java.lang.Object
-
- ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand<Solution_,AnchorVariableSupply>
-
- ai.timefold.solver.core.impl.domain.variable.anchor.AnchorVariableDemand<Solution_>
-
- All Implemented Interfaces:
Demand<AnchorVariableSupply>
public final class AnchorVariableDemand<Solution_> extends AbstractVariableDescriptorBasedDemand<Solution_,AnchorVariableSupply>
-
-
Field Summary
-
Fields inherited from class ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand
variableDescriptor
-
-
Constructor Summary
Constructors Constructor Description AnchorVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchorVariableSupplycreateExternalizedSupply(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
-
AnchorVariableDemand
public AnchorVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor)
-
-
Method Detail
-
createExternalizedSupply
public AnchorVariableSupply 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
-
-