Class Mapping

java.lang.Object
org.variantsync.boosting.eval.util.Mapping

public class Mapping extends Object
Class for controlling mappings of features to artifacts.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 extracted
      variantsDirectory - The directory where the .csv files for the variants are stored
      Returns:
      An Artefact object representing the extracted PC