public class MeasurementsProvider extends java.lang.Object implements IMeasurementsProvider, java.io.Serializable
Constructor and Description |
---|
MeasurementsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addOrReplaceMeasurement(java.lang.String name,
java.lang.Double value)
Add or replace measurement data.
|
void |
clearMeasurements()
Clear all measurements.
|
static void |
copy(IMeasurementsProvider source,
MeasurementsProvider target)
Copy contents of one measurements provider to another.
|
java.lang.Double |
getMeasurement(java.lang.String name)
Get measurement by name.
|
java.util.Map<java.lang.String,java.lang.Double> |
getMeasurements()
Get map of all measurements.
|
java.lang.Double |
removeMeasurement(java.lang.String name)
Remove a measurement.
|
void |
setMeasurements(java.util.Map<java.lang.String,java.lang.Double> measurements) |
public void addOrReplaceMeasurement(java.lang.String name, java.lang.Double value)
IMeasurementsProvider
addOrReplaceMeasurement
in interface IMeasurementsProvider
public java.lang.Double removeMeasurement(java.lang.String name)
IMeasurementsProvider
removeMeasurement
in interface IMeasurementsProvider
public java.lang.Double getMeasurement(java.lang.String name)
IMeasurementsProvider
getMeasurement
in interface IMeasurementsProvider
public java.util.Map<java.lang.String,java.lang.Double> getMeasurements()
IMeasurementsProvider
getMeasurements
in interface IMeasurementsProvider
public void setMeasurements(java.util.Map<java.lang.String,java.lang.Double> measurements)
public void clearMeasurements()
IMeasurementsProvider
clearMeasurements
in interface IMeasurementsProvider
public static void copy(IMeasurementsProvider source, MeasurementsProvider target)
source
- target
-