Class TupleWrapper
java.lang.Object
org.palladiosimulator.edp2.distancemetrics.util.TupleWrapper
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
ConstructorDescriptionTupleWrapper
(org.palladiosimulator.measurementframework.TupleMeasurement tuple) Creates a wrapper object of a TupleMeasurement. -
Method Summary
-
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.
-