Class ProbeMeasurement
java.lang.Object
org.palladiosimulator.probeframework.measurement.ProbeMeasurement
Data class representing a (
IMeasureProvider
, ProbeAndRequestContext
)-tuple.
Therefore, concrete data objects can store a measureProvider coming from a given
ProbeAndRequestContext.-
Constructor Summary
ConstructorDescriptionProbeMeasurement
(org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider measureProvider, Probe probe, RequestContext requestContext) Default constructor. -
Method Summary
Modifier and TypeMethodDescription<V,
Q extends javax.measure.quantity.Quantity>
org.palladiosimulator.measurementframework.BasicMeasurement<V,Q> Returns aBasicMeasurement
based on the storedIMeasureProvider
object.final org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider
Getter for the measureProvider.final ProbeAndRequestContext
Getter for the probe and request context.boolean
Checks whether the storedIMeasureProvider
object is aBasicMeasurement
.
-
Constructor Details
-
ProbeMeasurement
public ProbeMeasurement(org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider measureProvider, Probe probe, RequestContext requestContext) Default constructor. Constructs the object tuple.- Parameters:
measureProvider
- The measureProvider to be stored.probe
- The referred probe.requestContext
- The referred request context.
-
-
Method Details
-
getMeasureProvider
public final org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider getMeasureProvider()Getter for the measureProvider.- Returns:
- The measureProvider.
-
getProbeAndContext
Getter for the probe and request context.- Returns:
- The probeAndContext.
-
isBasicMeasurement
public boolean isBasicMeasurement()Checks whether the storedIMeasureProvider
object is aBasicMeasurement
. Only basic probes (e.g., basic triggered probes) are realized asBasicMeasurement
.- Returns:
true
if the storedIMeasureProvider
is aBasicMeasurement
;false
otherwise.
-
getBasicMeasurement
public <V,Q extends javax.measure.quantity.Quantity> org.palladiosimulator.measurementframework.BasicMeasurement<V,Q> getBasicMeasurement()Returns aBasicMeasurement
based on the storedIMeasureProvider
object. Only basic probes (e.g., basic triggered probes) are realized asBasicMeasurement
.- Type Parameters:
V
- Value type of theBasicMeasurement
. Most often used values are Double or LongQ
- Quantity to be stored, seeQuantity
- Returns:
- The
BasicMeasurement
- Throws:
UnsupportedOperationException
- If the storedIMeasureProvider
object is not aBasicMeasurement
.
-