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
-
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.
-
Field Details
-
parser
Parameter parser (for the filter)
-
-
Constructor Details
-
SimulatorSelector
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.
-