Class SingletonListInverseVariableDemand<Solution_>
- java.lang.Object
-
- ai.timefold.solver.core.impl.domain.variable.supply.AbstractVariableDescriptorBasedDemand<Solution_,SingletonInverseVariableSupply>
-
- ai.timefold.solver.core.impl.domain.variable.inverserelation.SingletonListInverseVariableDemand<Solution_>
-
- All Implemented Interfaces:
Demand<SingletonInverseVariableSupply>
public final class SingletonListInverseVariableDemand<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 SingletonListInverseVariableDemand(ListVariableDescriptor<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
-
SingletonListInverseVariableDemand
public SingletonListInverseVariableDemand(ListVariableDescriptor<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
-
-