Class VertexMetricSelector<U>

java.lang.Object
es.uam.eps.ir.relison.grid.sna.vertex.VertexMetricSelector<U>
Type Parameters:
U - type of the users.

public class VertexMetricSelector<U>
extends java.lang.Object
Class that translates from a grid to the different vertex metrics.
  • Constructor Summary

    Constructors 
    Constructor Description
    VertexMetricSelector()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​GraphMetricFunction<U>> getGraphMetrics​(java.lang.String metric, Grid grid)
    Obtains the aggregate variants of a given vertex metric, given the parameters selected in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<GraphMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
    Obtains the aggregate variants of a given vertex metric, given the parameters selected in a grid.
    VertexMetricGridSearch<U> getGridSearch​(java.lang.String metric)
    Obtains the grid configurator for a metric.
    java.util.Map<java.lang.String,​VertexMetricFunction<U>> getMetrics​(java.lang.String metric, Configurations confs)
    Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.
    java.util.Map<java.lang.String,​VertexMetricFunction<U>> getMetrics​(java.lang.String metric, Grid grid)
    Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.
    java.util.Map<java.lang.String,​java.util.function.Supplier<VertexMetric<U>>> getMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
    Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getGridSearch

      public VertexMetricGridSearch<U> getGridSearch​(java.lang.String metric)
      Obtains the grid configurator for a metric.
      Parameters:
      metric - the name of the metric.
      Returns:
      the grid configurator for the metric if it exists, null otherwise.
    • getMetrics

      public java.util.Map<java.lang.String,​java.util.function.Supplier<VertexMetric<U>>> getMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
      Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      distCalc - a distance calculator.
      Returns:
      a map containing the different metric suppliers.
    • getMetrics

      public java.util.Map<java.lang.String,​VertexMetricFunction<U>> getMetrics​(java.lang.String metric, Grid grid)
      Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      Returns:
      a map containing the different metric suppliers, which work given a distance calculator.
    • getMetrics

      public java.util.Map<java.lang.String,​VertexMetricFunction<U>> getMetrics​(java.lang.String metric, Configurations confs)
      Obtains the different variants of a given vertex metric depending on the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      confs - the configurations.
      Returns:
      a map containing the different metric suppliers, which work given a distance calculator.
    • getGraphMetrics

      public java.util.Map<java.lang.String,​java.util.function.Supplier<GraphMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid, DistanceCalculator<U> distCalc)
      Obtains the aggregate variants of a given vertex metric, given the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      distCalc - a distance calculator.
      Returns:
      a map, indexed by metric name, containing the different variants of the metric selected in the grid.
    • getGraphMetrics

      public java.util.Map<java.lang.String,​GraphMetricFunction<U>> getGraphMetrics​(java.lang.String metric, Grid grid)
      Obtains the aggregate variants of a given vertex metric, given the parameters selected in a grid.
      Parameters:
      metric - the name of the metric.
      grid - the grid containing the different parameters.
      Returns:
      a map, indexed by metric name, containing the different variants of the metric selected in the grid.