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