Class SimulationMetricsSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​P>

java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.SimulationMetricsSelector<U,​I,​P>
Type Parameters:
U - Type of the users
I - Type of the information pieces
P - Type of the parameters

public class SimulationMetricsSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​P>
extends java.lang.Object
Class that selects an individual filter from a grid.
  • Field Details

    • parser

      private final org.ranksys.formats.parsing.Parser<P> parser
      Parameter parser (for the filter)
  • Constructor Details

    • SimulationMetricsSelector

      public SimulationMetricsSelector​(org.ranksys.formats.parsing.Parser<P> parser)
      Constructor.
      Parameters:
      parser - Parameter parser (for the filter)
  • Method Details

    • select

      public Triplet<DataFilter<U,​I,​P>,​java.util.List<SimulationMetric<U,​I,​P>>,​java.util.List<org.jooq.lambda.tuple.Tuple2<Distribution<U,​I,​P>,​java.util.List<java.lang.Integer>>>> select​(SimulationMetricsParameterReader spr, P defaultValue)
      Selects a protocol.
      Parameters:
      spr - Parameters for the simulation.
      defaultValue - default value for the parameter values.
      Returns:
      A triple containing a data filter, a list of simulation metrics and a list of distributions
    • select

      public Triplet<DataFilter<U,​I,​P>,​java.util.List<SimulationMetric<U,​I,​P>>,​java.util.List<org.jooq.lambda.tuple.Tuple2<Distribution<U,​I,​P>,​java.util.List<java.lang.Integer>>>> select​(SimulationMetricsParameterReader spr, P defaultValue, Graph<U> testGraph)
      Selects a protocol.
      Parameters:
      spr - Parameters for the simulation.
      defaultValue - default value for the parameter values.
      testGraph - the test graph.
      Returns:
      A triple containing a data filter, a list of simulation metrics and a list of distributions