Class ProbeMeasurement
- java.lang.Object
-
- org.palladiosimulator.probeframework.measurement.ProbeMeasurement
-
public class ProbeMeasurement extends Object
Data class representing a (IMeasureProvider
,ProbeAndRequestContext
)-tuple. Therefore, concrete data objects can store a measureProvider coming from a given ProbeAndRequestContext.
-
-
Constructor Summary
Constructors Constructor Description ProbeMeasurement(org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider measureProvider, Probe probe, RequestContext requestContext)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V,Q extends javax.measure.quantity.Quantity>
org.palladiosimulator.measurementframework.BasicMeasurement<V,Q>getBasicMeasurement()
Returns aBasicMeasurement
based on the storedIMeasureProvider
object.org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider
getMeasureProvider()
Getter for the measureProvider.ProbeAndRequestContext
getProbeAndContext()
Getter for the probe and request context.boolean
isBasicMeasurement()
Checks whether the storedIMeasureProvider
object is aBasicMeasurement
.
-
-
-
Constructor Detail
-
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 Detail
-
getMeasureProvider
public final org.palladiosimulator.measurementframework.measureprovider.IMeasureProvider getMeasureProvider()
Getter for the measureProvider.- Returns:
- The measureProvider.
-
getProbeAndContext
public final ProbeAndRequestContext 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
.
-
-