Class CollectionInverseVariableDemand
- java.lang.Object
- 
- org.optaplanner.core.impl.domain.variable.inverserelation.CollectionInverseVariableDemand
 
- 
- All Implemented Interfaces:
- Demand<CollectionInverseVariableSupply>
 
 public class CollectionInverseVariableDemand extends Object implements Demand<CollectionInverseVariableSupply> To get an instance, demand aCollectionInverseVariableDemandfromInnerScoreDirector.getSupplyManager().
- 
- 
Field SummaryFields Modifier and Type Field Description protected VariableDescriptorsourceVariableDescriptor
 - 
Constructor SummaryConstructors Constructor Description CollectionInverseVariableDemand(VariableDescriptor sourceVariableDescriptor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectionInverseVariableSupplycreateExternalizedSupply(InnerScoreDirector scoreDirector)Only called if the domain model doesn't already support the demand (through a shadow variable usually).booleanequals(Object o)VariableDescriptorgetSourceVariableDescriptor()inthashCode()StringtoString()
 
- 
- 
- 
Field Detail- 
sourceVariableDescriptorprotected final VariableDescriptor sourceVariableDescriptor 
 
- 
 - 
Constructor Detail- 
CollectionInverseVariableDemandpublic CollectionInverseVariableDemand(VariableDescriptor sourceVariableDescriptor) 
 
- 
 - 
Method Detail- 
getSourceVariableDescriptorpublic VariableDescriptor getSourceVariableDescriptor() 
 - 
createExternalizedSupplypublic CollectionInverseVariableSupply createExternalizedSupply(InnerScoreDirector scoreDirector) 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<CollectionInverseVariableSupply>
- Parameters:
- scoreDirector- never null
- Returns:
- never null
 
 
- 
 
-