Interface ICollectionElementVariable

  • All Known Implementing Classes:
    CollectionElementVariable

    public interface ICollectionElementVariable
    Represents a (temporary) element of a collection as collection (by design decision) do no have real contained variables.
    Author:
    Holger Eichelberger
    • Method Detail

      • getIndex

        int getIndex()
        The index of the element in the collection, i.e., the nested element.
        Returns:
        the index
      • getBaseVariable

        AbstractVariable getBaseVariable()
        The base variable representing the collection.
        Returns:
        the collection base variable
      • resolve

        IDecisionVariable resolve​(IConfiguration config)
        Resolves the element variable to a decision variable.
        Parameters:
        config - the configuration to resolve on
        Returns:
        the resolved decision variable (may be null if not resolvable)