Class MeshBasedSelfConfigurator

  • All Implemented Interfaces:
    ISelfConfigurator

    public class MeshBasedSelfConfigurator
    extends BooleanSelfConfigurator
    Author:
    Kevin Dreßler, Mohamed Sherif (sherif@informatik.uni-leipzig.de), Klaus Lyko (lyko@informatik.uni-leipzig.de)
    • Field Detail

      • MAX_STRATEGY

        public static String MAX_STRATEGY
      • MIN_STRATEFY

        public static String MIN_STRATEFY
    • Constructor Detail

      • MeshBasedSelfConfigurator

        public MeshBasedSelfConfigurator​(ACache source,
                                         ACache target)
        Basic constructor uses default values for minCoverage and beta.
        Parameters:
        source -
        target -
      • MeshBasedSelfConfigurator

        public MeshBasedSelfConfigurator​(ACache source,
                                         ACache target,
                                         double minCoverage)
        Constructor
        Parameters:
        source - Source cache
        target - Target cache
        minCoverage - Minimal coverage for a property to be considered for linking
    • Method Detail

      • generateCoordinates

        public static List<List<Double>> generateCoordinates​(List<Double> min,
                                                             List<Double> max,
                                                             int n)
        Generates a mesh over the space defined by the mins and max set. The size of the mesh is set to ensure that each side of the mesh consists of exactly n points
        Parameters:
        min - Coordinates on the bottom-left point (in 2D)
        max - Coordinates on the top-right point (in 2D)
        n - Size of the mesh
        Returns:
        List of coordinates for the mesh points
      • getMappings

        public Map<Double,​AMapping> getMappings​(double min,
                                                      double max,
                                                      int n,
                                                      SimpleClassifier cp)
        Computes the mappings for a classifier across a dimension of the mesh
        Parameters:
        min -
        max -
        n -
        cp -
        Returns:
      • getZoomedHillTop

        public ComplexClassifier getZoomedHillTop​(int gridPoints,
                                                  int iterations,
                                                  List<SimpleClassifier> sc)
        Generates the grids iteratively to find the best possible solution
        Parameters:
        gridPoints - Number of points used for the grid. 5 leads to a 4x4x..x4 grid
        iterations - Number of times that the zooming is applied
        sc - Initial classifier, defines the dimensions of the space
        Returns:
        A complex classifier
      • getZoomedHillTop

        public ComplexClassifier getZoomedHillTop​(int gridPoints,
                                                  long duration,
                                                  List<SimpleClassifier> sc)
        Alternative: Generates the grids iteratively to find the best possible solution, within a given maxmimal duration in seconds
        Parameters:
        gridPoints - Number of points used for the grid. 5 leads to a
        duration - maximal duration in seconds
        sc - Initial classifier, defines the dimensions of the space
        Returns:
        A complex classifier
      • setStrategy

        public void setStrategy​(String strategy)