Class DefaultCalculatorProbeSets
- java.lang.Object
-
- org.palladiosimulator.probeframework.calculator.DefaultCalculatorProbeSets
-
public final class DefaultCalculatorProbeSets extends Object
This class contains factory methods and identifier for theCalculatorProbeSets
which are supported by the standard calculators of the probe framework. This class is by design not an enum as extensions which require a custom probe set should implement a similar ProbeSet helper class for and as part of their specific extension.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SINGULAR_PROBE
The sole probe contained in a configurationstatic String
START_PROBE
The start probe of a StartStopProbeConfigurationstatic String
STOP_PROBE
The stop probe of a StartStopProbeConfiguration
-
Constructor Summary
Constructors Constructor Description DefaultCalculatorProbeSets()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CalculatorProbeSet
createCustomProbeSet(Map<String,Probe> identifierToProbeMapping)
Returns a new custom CalculatorProbeSet containing the probes according to the provided mapping.static CalculatorProbeSet
createSingularProbeConfiguration(Probe probe)
Returns a new CalculatorProbeSet containing only a single probe, e.g.static CalculatorProbeSet
createStartStopProbeConfiguration(Probe startProbe, Probe stopProbe)
Returns a new CalculatorProbeSet containing a start and a stop probe, e.g.
-
-
-
Field Detail
-
SINGULAR_PROBE
public static final String SINGULAR_PROBE
The sole probe contained in a configuration- See Also:
- Constant Field Values
-
START_PROBE
public static final String START_PROBE
The start probe of a StartStopProbeConfiguration- See Also:
- Constant Field Values
-
STOP_PROBE
public static final String STOP_PROBE
The stop probe of a StartStopProbeConfiguration- See Also:
- Constant Field Values
-
-
Method Detail
-
createSingularProbeConfiguration
public static CalculatorProbeSet createSingularProbeConfiguration(Probe probe)
Returns a new CalculatorProbeSet containing only a single probe, e.g. as used byIdentityCalculator
.- Parameters:
probe
- the single probe- Returns:
- a CalculatorProbeSet
-
createStartStopProbeConfiguration
public static CalculatorProbeSet createStartStopProbeConfiguration(Probe startProbe, Probe stopProbe)
Returns a new CalculatorProbeSet containing a start and a stop probe, e.g. as used byTimeSpanCalculator
.- Parameters:
startProbe
- the start probestopProbe
- the stop probe- Returns:
- a CalculatorProbeSet
-
createCustomProbeSet
public static CalculatorProbeSet createCustomProbeSet(Map<String,Probe> identifierToProbeMapping)
Returns a new custom CalculatorProbeSet containing the probes according to the provided mapping.- Parameters:
identifierToProbeMapping
- a map of probe identifier to probe- Returns:
- the CalculatorProbeSet
-
-