Class BuildCollectionApplicator
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.matchLoop.Applicator
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.matchLoop.BuildCollectionApplicator
-
public class BuildCollectionApplicator extends Applicator
An applicator which collects the RHS values which need a build and pushes the related match variable values into the given runtime environment.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private RuntimeEnvironmentenvironmentprivate java.util.List<java.util.List<java.lang.Object>>rhsObjects-
Fields inherited from class net.ssehub.easy.instantiation.core.model.buildlangModel.matchLoop.Applicator
rhsValues, rule
-
-
Constructor Summary
Constructors Constructor Description BuildCollectionApplicator(RuntimeEnvironment environment)Creates a build collection applicator for a given runtimeenvironment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(java.lang.Object expectedLhsValue, java.lang.Object rhsValue, int index)Apply this applicator for one combination which requires building.voidconditionLoopFinished()Sets the results of the MATCH-variables inenvironment.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.buildlangModel.matchLoop.Applicator
getElementCount, initialize, matchLoopFinished, stopConditionLoop, stopMatchLoop
-
-
-
-
Field Detail
-
rhsObjects
private java.util.List<java.util.List<java.lang.Object>> rhsObjects
-
environment
private RuntimeEnvironment environment
-
-
Constructor Detail
-
BuildCollectionApplicator
public BuildCollectionApplicator(RuntimeEnvironment environment)
Creates a build collection applicator for a given runtimeenvironment.- Parameters:
environment- the environment to
-
-
Method Detail
-
apply
public void apply(java.lang.Object expectedLhsValue, java.lang.Object rhsValue, int index) throws VilExceptionDescription copied from class:ApplicatorApply this applicator for one combination which requires building. This may be due to the fact thatrhsValue- is newer than
expectedLhsValue - exists but
expectedLhsValuedoes not exist - exists but no LHS is specified (
expectedLhsValueis null)
- Specified by:
applyin classApplicator- Parameters:
expectedLhsValue- the expected result after buildingrhsValue(may be null)rhsValue- the value determined for the right side as part of a matchindex- the 0-based index of the RHS match condition in the specifying rule (Applicator.getElementCount()- Throws:
VilException- in case that executing parts of a rule or setting variable values fails
- is newer than
-
conditionLoopFinished
public void conditionLoopFinished() throws VilExceptionSets the results of the MATCH-variables inenvironment.- Overrides:
conditionLoopFinishedin classApplicator- Throws:
VilException- in case that setting the a value fails (e.g., redefining a constant)
-
-