Class DefaultCalculatorProbeSets
java.lang.Object
org.palladiosimulator.probeframework.calculator.DefaultCalculatorProbeSets
This class contains factory methods and identifier for the
CalculatorProbeSets
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CalculatorProbeSet
createCustomProbeSet
(Map<String, Probe> identifierToProbeMapping) Returns a new custom CalculatorProbeSet containing the probes according to the provided mapping.static CalculatorProbeSet
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 Details
-
SINGULAR_PROBE
The sole probe contained in a configuration- See Also:
-
START_PROBE
The start probe of a StartStopProbeConfiguration- See Also:
-
STOP_PROBE
The stop probe of a StartStopProbeConfiguration- See Also:
-
-
Constructor Details
-
DefaultCalculatorProbeSets
public DefaultCalculatorProbeSets()
-
-
Method Details
-
createSingularProbeConfiguration
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
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
-