Interface IndexVariableSupply

All Superinterfaces:
Supply
All Known Implementing Classes:
ExternalizedIndexVariableSupply, IndexVariableListener

public interface IndexVariableSupply extends Supply
Only supported for list variables.

To get an instance, demand an IndexVariableDemand from InnerScoreDirector.getSupplyManager().

  • Method Summary

    Modifier and Type
    Method
    Description
    getIndex(Object planningValue)
    Get planningValue's index in the list variable it is an element of.
  • Method Details

    • getIndex

      Integer getIndex(Object planningValue)
      Get planningValue's index in the list variable it is an element of.
      Parameters:
      planningValue - never null
      Returns:
      planningValue's index in the list variable it is an element of or null if the value is unassigned