Class CollectionInverseVariableDemand<Solution_>
- java.lang.Object
- 
- org.optaplanner.core.impl.domain.variable.inverserelation.CollectionInverseVariableDemand<Solution_>
 
- 
- All Implemented Interfaces:
- Demand<CollectionInverseVariableSupply>
 
 public class CollectionInverseVariableDemand<Solution_> extends Object implements Demand<CollectionInverseVariableSupply> To get an instance, demand aCollectionInverseVariableDemandfromInnerScoreDirector.getSupplyManager().
- 
- 
Field SummaryFields Modifier and Type Field Description protected VariableDescriptor<Solution_>sourceVariableDescriptor
 - 
Constructor SummaryConstructors Constructor Description CollectionInverseVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor)
 - 
Method SummaryAll 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).booleanequals(Object o)inthashCode()StringtoString()
 
- 
- 
- 
Field Detail- 
sourceVariableDescriptorprotected final VariableDescriptor<Solution_> sourceVariableDescriptor 
 
- 
 - 
Constructor Detail- 
CollectionInverseVariableDemandpublic CollectionInverseVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor) 
 
- 
 - 
Method Detail- 
createExternalizedSupplypublic 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.- Specified by:
- createExternalizedSupplyin interface- Demand<Solution_>
- Parameters:
- supplyManager- never null
- Returns:
- never null
 
 
- 
 
-