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