Class TupleWrapper


  • public class TupleWrapper
    extends Object
    This class is a wrapper for a tuple measurement which contains the point in time of the measured value and the measured value it self. To increase readability of code this class offers methods to access the values of the tuple.
    • Constructor Summary

      Constructors 
      Constructor Description
      TupleWrapper​(org.palladiosimulator.measurementframework.TupleMeasurement tuple)
      Creates a wrapper object of a TupleMeasurement.
    • Constructor Detail

      • TupleWrapper

        public TupleWrapper​(org.palladiosimulator.measurementframework.TupleMeasurement tuple)
        Creates a wrapper object of a TupleMeasurement.
        Parameters:
        tuple - The TupleMeasurement that should be wrapped.
    • Method Detail

      • getTime

        public double getTime​(javax.measure.unit.Unit<javax.measure.quantity.Quantity> unit)
        Gives back the point in time of the measurement.
        Parameters:
        unit - The returned value will be stated in this unit.
        Returns:
        Returns the time value of the TupleMeasurement.
      • getValue

        public double getValue​(javax.measure.unit.Unit<javax.measure.quantity.Quantity> unit)
        Returns the measured value of the TupleMeasurement.
        Parameters:
        unit - The returned value will be stated in this unit.
        Returns:
        Returns the measured value at a specified point in time of the TupleMeasurement.