Interface ICollectionElementVariable
-
- All Known Implementing Classes:
CollectionElementVariable
public interface ICollectionElementVariableRepresents a (temporary) element of a collection as collection (by design decision) do no have real contained variables.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractVariablegetBaseVariable()The base variable representing the collection.intgetIndex()The index of the element in the collection, i.e., the nested element.IDecisionVariableresolve(IConfiguration config)Resolves the element variable to a decision variable.
-
-
-
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)
-
-