java.lang.Object
org.palladiosimulator.edp2.distancemetrics.util.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.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getTime(javax.measure.unit.Unit<javax.measure.quantity.Quantity> unit)
    Gives back the point in time of the measurement.
    double
    getValue(javax.measure.unit.Unit<javax.measure.quantity.Quantity> unit)
    Returns the measured value of the TupleMeasurement.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TupleWrapper

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

    • 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.