Class SimulatorSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​F>

java.lang.Object
es.uam.eps.ir.relison.grid.diffusion.SimulatorSelector<U,​I,​F>
Type Parameters:
U - type of the users.
I - type of the information pieces.
F - type of the features.

public class SimulatorSelector<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends java.lang.Object
Class that selects a single simulator for a grid.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private org.ranksys.formats.parsing.Parser<F> parser
    Parameter parser (for the filter)
  • Constructor Summary

    Constructors 
    Constructor Description
    SimulatorSelector​(org.ranksys.formats.parsing.Parser<F> parser)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Tuple2oo<Simulator<U,​I,​F>,​DataFilter<U,​I,​F>> select​(SimulationParameterReader simParams, int num, F defaultValue)
    Selects a protocol.
    Tuple2oo<Simulator<U,​I,​F>,​DataFilter<U,​I,​F>> select​(SimulationParameterReader simParams, int num, F defaultValue, Graph<U> filterGraph)
    Selects a protocol.

    Methods inherited from class java.lang.Object

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

    • parser

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

    • SimulatorSelector

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

    • select

      public Tuple2oo<Simulator<U,​I,​F>,​DataFilter<U,​I,​F>> select​(SimulationParameterReader simParams, int num, F defaultValue)
      Selects a protocol.
      Parameters:
      simParams - parameters for the simulation.
      num - simulation index number.
      defaultValue - default value for the parameter values.
      Returns:
      a pair containing the simulator and the data filter.
    • select

      public Tuple2oo<Simulator<U,​I,​F>,​DataFilter<U,​I,​F>> select​(SimulationParameterReader simParams, int num, F defaultValue, Graph<U> filterGraph)
      Selects a protocol.
      Parameters:
      simParams - parameters for the simulation.
      num - simulation index number.
      defaultValue - default value for the parameter values.
      filterGraph - a graph for filtering the data (for instance, the test graph in a recommendation).
      Returns:
      a pair containing a simulator and a data filter.