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 usersI
- Type of the information piecesP
- 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 Summary
-
Constructor Summary
Constructors Constructor Description SimulationMetricsSelector(org.ranksys.formats.parsing.Parser<P> parser)
Constructor. -
Method Summary
Modifier and Type Method Description 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.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.
-
Field Details
-
parser
Parameter parser (for the filter)
-
-
Constructor Details
-
SimulationMetricsSelector
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
-