public class MeasurementCache extends Object
Constructor and Description |
---|
MeasurementCache()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
InterpolatedValue |
getEarliest(String orgId,
String depotId,
String sensorId)
Gets the earliest measurement date for the given sensor.
|
InterpolatedValue |
getLatest(String orgId,
String depotId,
String sensorId)
Gets the date of the latest measurement for the given sensor.
|
void |
update(String orgId,
String depotId,
String sensorId,
InterpolatedValue iv)
Updates the Sensor's information with the given InterpolatedValue.
|
public InterpolatedValue getEarliest(String orgId, String depotId, String sensorId)
orgId
- The organization id.depotId
- The depository id.sensorId
- The sensor id.public InterpolatedValue getLatest(String orgId, String depotId, String sensorId)
orgId
- The organization id.depotId
- The depository id.sensorId
- The sensor id.public void update(String orgId, String depotId, String sensorId, InterpolatedValue iv)
orgId
- The organization id.depotId
- The depository id.sensorId
- The sensor id.iv
- The interpolated value for the measurement.Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.