Class CustomShadowVariableDemand<Solution_>
- java.lang.Object
- 
- org.optaplanner.core.impl.domain.variable.custom.CustomShadowVariableDemand<Solution_>
 
- 
- All Implemented Interfaces:
- Demand<Solution_,SingletonInverseVariableSupply>
 
 public class CustomShadowVariableDemand<Solution_> extends Object implements Demand<Solution_,SingletonInverseVariableSupply> Unlike otherDemands, a custom demand isn't equalized based on its sources, but based on its target. Therefore a custom shadow variable cannot be reused by built-in systems.
- 
- 
Constructor SummaryConstructors Constructor Description CustomShadowVariableDemand(CustomShadowVariableDescriptor<Solution_> targetShadowVariableDescriptor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonInverseVariableSupplycreateExternalizedSupply(InnerScoreDirector<Solution_,?> scoreDirector)Only called if the domain model doesn't already support the demand (through a shadow variable usually).booleanequals(Object o)inthashCode()StringtoString()
 
- 
- 
- 
Constructor Detail- 
CustomShadowVariableDemandpublic CustomShadowVariableDemand(CustomShadowVariableDescriptor<Solution_> targetShadowVariableDescriptor) 
 
- 
 - 
Method Detail- 
createExternalizedSupplypublic SingletonInverseVariableSupply createExternalizedSupply(InnerScoreDirector<Solution_,?> 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<Solution_,SingletonInverseVariableSupply>
- Parameters:
- scoreDirector- never null
- Returns:
- never null
 
 
- 
 
-