Class IndividualCommunityMetricSelector<U>

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

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

    Constructors 
    Constructor Description
    IndividualCommunityMetricSelector()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Map<java.lang.String,​java.util.function.Supplier<CommunityMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid)
    Obtains the aggregate variants of a given individual community metric, given the parameters selected in a grid.
    IndividualCommunityMetricGridSearch<U> getGridSearch​(java.lang.String metric)
    Obtains the grid configurator for a metric.
    java.util.Map<java.lang.String,​java.util.function.Supplier<IndividualCommunityMetric<U>>> getMetrics​(java.lang.String metric, Grid grid)
    Obtains the different variants of a given community 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 IndividualCommunityMetricGridSearch<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<IndividualCommunityMetric<U>>> getMetrics​(java.lang.String metric, Grid grid)
      Obtains the different variants of a given community 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.
    • getGraphMetrics

      public java.util.Map<java.lang.String,​java.util.function.Supplier<CommunityMetric<U>>> getGraphMetrics​(java.lang.String metric, Grid grid)
      Obtains the aggregate variants of a given individual community 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.