OptaPlanner core 6.2.0.Final

org.optaplanner.core.impl.domain.variable.inverserelation
Class SingletonInverseVariableDemand

java.lang.Object
  extended by org.optaplanner.core.impl.domain.variable.inverserelation.SingletonInverseVariableDemand
All Implemented Interfaces:
Serializable, Demand<SingletonInverseVariableSupply>

public class SingletonInverseVariableDemand
extends Object
implements Demand<SingletonInverseVariableSupply>, Serializable

See Also:
Serialized Form

Field Summary
protected  VariableDescriptor sourceVariableDescriptor
           
 
Constructor Summary
SingletonInverseVariableDemand(VariableDescriptor sourceVariableDescriptor)
           
 
Method Summary
 SingletonInverseVariableSupply 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sourceVariableDescriptor

protected final VariableDescriptor sourceVariableDescriptor
Constructor Detail

SingletonInverseVariableDemand

public SingletonInverseVariableDemand(VariableDescriptor sourceVariableDescriptor)
Method Detail

getSourceVariableDescriptor

public VariableDescriptor getSourceVariableDescriptor()

createExternalizedSupply

public SingletonInverseVariableSupply 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<SingletonInverseVariableSupply>
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

OptaPlanner core 6.2.0.Final

Copyright © 2006-2015 JBoss by Red Hat. All Rights Reserved.