Class AbstractIvmlModifier.InstantiationContext
java.lang.Object
de.iip_ecosphere.platform.configuration.ivml.AbstractIvmlModifier.InstantiationContext
- Enclosing class:
AbstractIvmlModifier
Represents runtime (collected) information steering the template instantiation.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate booleanprivate List<net.ssehub.easy.varModel.confModel.IDecisionVariable> private Set<net.ssehub.easy.varModel.model.Project> private Map<net.ssehub.easy.varModel.model.AbstractVariable, net.ssehub.easy.varModel.model.AbstractVariable> private net.ssehub.easy.varModel.model.Project -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstantiationContext(Map<String, String> adjustments) Creates an instantiation context with given adjustments. -
Method Summary
Modifier and TypeMethodDescriptionprivate StringReturns the name of the current template variable being processed.Returns the names of the meshes created in this context.private StringprefixVarName(String name) Prefix an IVML variable name with theappPrefix.
-
Field Details
-
adjustments
-
modified
-
substitutions
private Map<net.ssehub.easy.varModel.model.AbstractVariable,net.ssehub.easy.varModel.model.AbstractVariable> substitutions -
meshes
-
currentTemplateVariable
-
appPrefix
-
targetProject
private net.ssehub.easy.varModel.model.Project targetProject -
enableNameAdjustment
private boolean enableNameAdjustment
-
-
Constructor Details
-
InstantiationContext
Creates an instantiation context with given adjustments.- Parameters:
adjustments- the adjustments
-
-
Method Details
-
getMeshNames
Returns the names of the meshes created in this context.- Returns:
- the names of the meshes
-
getCurrentTemplateVariableName
Returns the name of the current template variable being processed.- Returns:
- the name of the variable or empty if unset
-
prefixVarName
Prefix an IVML variable name with theappPrefix.- Parameters:
name- the name to prefix- Returns:
- the prefixed name if
appPrefixis set
-