Class IndexVariableDemand<Solution_>
- java.lang.Object
 - 
- org.optaplanner.core.impl.domain.variable.index.IndexVariableDemand<Solution_>
 
 
- 
- All Implemented Interfaces:
 Demand<IndexVariableSupply>
public class IndexVariableDemand<Solution_> extends Object implements Demand<IndexVariableSupply>
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected ListVariableDescriptor<Solution_>sourceVariableDescriptor 
- 
Constructor Summary
Constructors Constructor Description IndexVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexVariableSupplycreateExternalizedSupply(SupplyManager supplyManager)Only called if the domain model doesn't already support the demand (through a shadow variable usually).booleanequals(Object o)inthashCode()StringtoString() 
 - 
 
- 
- 
Field Detail
- 
sourceVariableDescriptor
protected final ListVariableDescriptor<Solution_> sourceVariableDescriptor
 
 - 
 
- 
Constructor Detail
- 
IndexVariableDemand
public IndexVariableDemand(ListVariableDescriptor<Solution_> sourceVariableDescriptor)
 
 - 
 
- 
Method Detail
- 
createExternalizedSupply
public IndexVariableSupply createExternalizedSupply(SupplyManager supplyManager)
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<Solution_>- Parameters:
 supplyManager- never null- Returns:
 - never null
 
 
 - 
 
 -