Interface SingletonInverseVariableSupply

All Superinterfaces:
Supply
All Known Implementing Classes:
ExternalizedSingletonInverseVariableSupply, ExternalizedSingletonListInverseVariableSupply, SingletonInverseVariableListener, SingletonListInverseVariableListener

public interface SingletonInverseVariableSupply extends Supply
Currently only supported for chained variables and list variables, which guarantee that no 2 entities use the same planningValue.

To get an instance, demand a SingletonInverseVariableDemand (for a chained variable) or a SingletonListInverseVariableDemand (for a list variable) from InnerScoreDirector.getSupplyManager().

  • Method Summary

    Modifier and Type
    Method
    Description
    getInverseSingleton(Object planningValue)
    If entity1.varA = x then the inverse of x is entity1.
  • Method Details

    • getInverseSingleton

      Object getInverseSingleton(Object planningValue)
      If entity1.varA = x then the inverse of x is entity1.
      Parameters:
      planningValue - never null
      Returns:
      sometimes null, an entity for which the planning variable is the planningValue.