Class SingletonInverseVariableDemand<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.domain.variable.inverserelation.SingletonInverseVariableDemand<Solution_>
-
- All Implemented Interfaces:
Demand<SingletonInverseVariableSupply>
public class SingletonInverseVariableDemand<Solution_> extends Object implements Demand<SingletonInverseVariableSupply>
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableDescriptor<Solution_>
sourceVariableDescriptor
-
Constructor Summary
Constructors Constructor Description SingletonInverseVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonInverseVariableSupply
createExternalizedSupply(SupplyManager supplyManager)
Only called if the domain model doesn't already support the demand (through a shadow variable usually).boolean
equals(Object o)
int
hashCode()
String
toString()
-
-
-
Field Detail
-
sourceVariableDescriptor
protected final VariableDescriptor<Solution_> sourceVariableDescriptor
-
-
Constructor Detail
-
SingletonInverseVariableDemand
public SingletonInverseVariableDemand(VariableDescriptor<Solution_> sourceVariableDescriptor)
-
-
Method Detail
-
createExternalizedSupply
public SingletonInverseVariableSupply createExternalizedSupply(SupplyManager supplyManager)
Description copied from interface:Demand
Only called if the domain model doesn't already support the demand (through a shadow variable usually). Equal demands share the sameSupply
.- Specified by:
createExternalizedSupply
in interfaceDemand<Solution_>
- Parameters:
supplyManager
- never null- Returns:
- never null
-
-