Class 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 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 stored IMeasureProvider object is a BasicMeasurement. Only basic probes (e.g., basic triggered probes) are realized as BasicMeasurement.
        Returns:
        true if the stored IMeasureProvider is a BasicMeasurement; false otherwise.
      • getBasicMeasurement

        public <V,​Q extends javax.measure.quantity.Quantity> org.palladiosimulator.measurementframework.BasicMeasurement<V,​Q> getBasicMeasurement()
        Returns a BasicMeasurement based on the stored IMeasureProvider object. Only basic probes (e.g., basic triggered probes) are realized as BasicMeasurement.
        Type Parameters:
        V - Value type of the BasicMeasurement. Most often used values are Double or Long
        Q - Quantity to be stored, see Quantity
        Returns:
        The BasicMeasurement
        Throws:
        UnsupportedOperationException - If the stored IMeasureProvider object is not a BasicMeasurement.