Class AnchorVariableDemand
- java.lang.Object
-
- org.optaplanner.core.impl.domain.variable.anchor.AnchorVariableDemand
-
- All Implemented Interfaces:
Demand<AnchorVariableSupply>
public class AnchorVariableDemand extends Object implements Demand<AnchorVariableSupply>
-
-
Field Summary
Fields Modifier and Type Field Description protected VariableDescriptor
sourceVariableDescriptor
-
Constructor Summary
Constructors Constructor Description AnchorVariableDemand(VariableDescriptor sourceVariableDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnchorVariableSupply
createExternalizedSupply(InnerScoreDirector scoreDirector)
Only called if the domain model doesn't already support the demand (through a shadow variable usually).boolean
equals(Object o)
VariableDescriptor
getSourceVariableDescriptor()
int
hashCode()
String
toString()
-
-
-
Field Detail
-
sourceVariableDescriptor
protected final VariableDescriptor sourceVariableDescriptor
-
-
Constructor Detail
-
AnchorVariableDemand
public AnchorVariableDemand(VariableDescriptor sourceVariableDescriptor)
-
-
Method Detail
-
getSourceVariableDescriptor
public VariableDescriptor getSourceVariableDescriptor()
-
createExternalizedSupply
public AnchorVariableSupply createExternalizedSupply(InnerScoreDirector 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<AnchorVariableSupply>
- Parameters:
scoreDirector
- never null- Returns:
- never null
-
-