Class ConfigurationContextResolver.ResolutionList
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.configuration.ConfigurationContextResolver.ResolutionList
-
- Enclosing class:
- ConfigurationContextResolver
private static class ConfigurationContextResolver.ResolutionList extends java.lang.ObjectStores the variables already processed and to be resolved.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<IDecisionVariable>listprivate java.util.Set<IDecisionVariable>set
-
Constructor Summary
Constructors Modifier Constructor Description privateResolutionList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IDecisionVariable var)Adds a variable.booleancontains(IDecisionVariable var)Returns whether the list already containsvar.IDecisionVariableget(int index)Returns the variable at the specified position.intsize()Returns the number of variables.
-
-
-
Field Detail
-
list
private java.util.List<IDecisionVariable> list
-
set
private java.util.Set<IDecisionVariable> set
-
-
Method Detail
-
add
public void add(IDecisionVariable var)
Adds a variable.- Parameters:
var- the variable
-
contains
public boolean contains(IDecisionVariable var)
Returns whether the list already containsvar.- Parameters:
var- the variable- Returns:
trueifvaris already contained,falseelse
-
size
public int size()
Returns the number of variables.- Returns:
- the number of variables
-
get
public IDecisionVariable get(int index)
Returns the variable at the specified position.- Parameters:
index- the 0-based position- Returns:
- the variable
-
-