Class Mapping
java.lang.Object
org.variantsync.boosting.eval.util.Mapping
Class for controlling mappings of features to artifacts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.variantsync.vevos.simulation.variability.pc.ArtefactExtracts the Product Configuration (PC) for a given Product from the corresponding .csv file.static voidmapNode(org.variantsync.vevos.simulation.variability.pc.Artefact result, org.variantsync.boosting.datastructure.ASTNode node, org.variantsync.boosting.position.ProductPosition productPosition) Sets mapping for a single Node depending on PCs of the variant taken from VEVOS and translates it to the internal PC-format.
-
Constructor Details
-
Mapping
public Mapping()
-
-
Method Details
-
mapNode
public static void mapNode(org.variantsync.vevos.simulation.variability.pc.Artefact result, org.variantsync.boosting.datastructure.ASTNode node, org.variantsync.boosting.position.ProductPosition productPosition) Sets mapping for a single Node depending on PCs of the variant taken from VEVOS and translates it to the internal PC-format.- Parameters:
result- The PCs of the variant which the node responds to.node- The node to map.productPosition- The product position.
-
findPC
public static org.variantsync.vevos.simulation.variability.pc.Artefact findPC(org.variantsync.boosting.product.Variant product, Path variantsDirectory) Extracts the Product Configuration (PC) for a given Product from the corresponding .csv file.- Parameters:
product- The Product for which the PC needs to be extractedvariantsDirectory- The directory where the .csv files for the variants are stored- Returns:
- An Artefact object representing the extracted PC
-