Class IndexAccessPathElement
- java.lang.Object
-
- net.ssehub.easy.varModel.confModel.paths.IndexAccessPathElement
-
- All Implemented Interfaces:
IResolutionPathElement
public class IndexAccessPathElement extends java.lang.Object implements IResolutionPathElement
An index access path element, e.g., for collections or as fallback.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private intindexprivate IResolutionPathElementparent
-
Constructor Summary
Constructors Constructor Description IndexAccessPathElement(IResolutionPathElement parent, int index)Creates an index access path element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDecisionVariableresolve(IConfiguration config)Resolves this path forconfig.
-
-
-
Field Detail
-
parent
private IResolutionPathElement parent
-
index
private int index
-
-
Constructor Detail
-
IndexAccessPathElement
public IndexAccessPathElement(IResolutionPathElement parent, int index)
Creates an index access path element.- Parameters:
parent- the parent pathindex- the index representing the access
-
-
Method Detail
-
resolve
public IDecisionVariable resolve(IConfiguration config)
Description copied from interface:IResolutionPathElementResolves this path forconfig.- Specified by:
resolvein interfaceIResolutionPathElement- Parameters:
config- the configuration to resolve on- Returns:
- the resolved decision variable (may be null if resolution fails)
-
-