Class TupleWrapper
- 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
All Methods Instance Methods Concrete Methods 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.
-
-
-
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.
-
-