Class SingletonListInverseVariableDemand<Solution_>
- java.lang.Object
-
- org.optaplanner.core.impl.domain.variable.inverserelation.SingletonListInverseVariableDemand<Solution_>
-
- All Implemented Interfaces:
Demand<Solution_,SingletonInverseVariableSupply>
public class SingletonListInverseVariableDemand<Solution_> extends Object implements Demand<Solution_,SingletonInverseVariableSupply>
-
-
Field Summary
Fields Modifier and Type Field Description protected ListVariableDescriptor<Solution_>
sourceVariableDescriptor
-
Constructor Summary
Constructors Constructor Description SingletonListInverseVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingletonInverseVariableSupply
createExternalizedSupply(InnerScoreDirector<Solution_,?> scoreDirector)
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 ListVariableDescriptor<Solution_> sourceVariableDescriptor
-
-
Constructor Detail
-
SingletonListInverseVariableDemand
public SingletonListInverseVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor)
-
-
Method Detail
-
createExternalizedSupply
public SingletonInverseVariableSupply createExternalizedSupply(InnerScoreDirector<Solution_,?> scoreDirector)
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_,SingletonInverseVariableSupply>
- Parameters:
scoreDirector
- never null- Returns:
- never null
-
-