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 Summary
Modifier and TypeMethodDescriptionThe base variable representing the collection.intgetIndex()The index of the element in the collection, i.e., the nested element.resolve(IConfiguration config) Resolves the element variable to a decision variable.
-
Method Details
-
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
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)
-