org.optaplanner.core.impl.domain.variable.anchor
Class AnchorVariableDemand
java.lang.Object
org.optaplanner.core.impl.domain.variable.anchor.AnchorVariableDemand
- All Implemented Interfaces:
- Serializable, Demand<AnchorVariableSupply>
public class AnchorVariableDemand
- extends Object
- implements Demand<AnchorVariableSupply>, Serializable
- See Also:
- Serialized Form
sourceVariableDescriptor
protected final VariableDescriptor sourceVariableDescriptor
AnchorVariableDemand
public AnchorVariableDemand(VariableDescriptor sourceVariableDescriptor)
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 same
Supply
.
- Specified by:
createExternalizedSupply
in interface Demand<AnchorVariableSupply>
- Parameters:
scoreDirector
- never null
- Returns:
- never null
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.