Class SingletonInverseVariableDemand
- java.lang.Object
 - 
- org.optaplanner.core.impl.domain.variable.inverserelation.SingletonInverseVariableDemand
 
 
- 
- All Implemented Interfaces:
 Demand<SingletonInverseVariableSupply>
public class SingletonInverseVariableDemand extends Object implements Demand<SingletonInverseVariableSupply>
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected VariableDescriptorsourceVariableDescriptor 
- 
Constructor Summary
Constructors Constructor Description SingletonInverseVariableDemand(VariableDescriptor sourceVariableDescriptor) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonInverseVariableSupplycreateExternalizedSupply(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
- 
sourceVariableDescriptor
protected final VariableDescriptor sourceVariableDescriptor
 
 - 
 
- 
Constructor Detail
- 
SingletonInverseVariableDemand
public SingletonInverseVariableDemand(VariableDescriptor sourceVariableDescriptor)
 
 - 
 
- 
Method Detail
- 
getSourceVariableDescriptor
public VariableDescriptor getSourceVariableDescriptor()
 
- 
createExternalizedSupply
public SingletonInverseVariableSupply 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 interfaceDemand<SingletonInverseVariableSupply>- Parameters:
 scoreDirector- never null- Returns:
 - never null
 
 
 - 
 
 -