public class InterpolatedValue extends Object
Modifier | Constructor and Description |
---|---|
protected |
InterpolatedValue()
Hide the default constructor.
|
|
InterpolatedValue(String sensorId,
Double value,
MeasurementType measurementType,
Date date)
Creates a new InterpolatedValue.
|
|
InterpolatedValue(String sensorId,
Double value,
MeasurementType measurementType,
Date start,
Date end)
Creates a new InterpolatedValue.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefinedSensor(String sensorId)
Adds the given sensor id to the list of defined sensors.
|
void |
addReportingSensor(String s)
Ads a SensorId to the missing sensors list.
|
boolean |
equals(Object obj) |
boolean |
equivalent(Measurement meas) |
ArrayList<String> |
getDefinedSensors() |
Date |
getEnd() |
MeasurementType |
getMeasurementType() |
ArrayList<String> |
getReportingSensors() |
String |
getSensorId() |
Date |
getStart() |
Double |
getValue() |
int |
hashCode() |
boolean |
missingSensorsEmptyP() |
String |
removeMissingSensor(String s)
Removes the sensorId from the missing sensors list.
|
void |
setDefinedSensors(ArrayList<String> definedSensors)
Sets the list of defined sensorIds.
|
void |
setEnd(Date end) |
void |
setMeasurementType(MeasurementType measurementType) |
void |
setReportingSensors(ArrayList<String> reportingSensors)
Sets the missing sensors list.
|
void |
setSensorId(String sensorId) |
void |
setStart(Date start) |
void |
setValue(Double value) |
String |
toString() |
protected InterpolatedValue()
public InterpolatedValue(String sensorId, Double value, MeasurementType measurementType, Date date)
sensorId
- The id of the sensor that made the measurement.value
- The value of the measurement.measurementType
- The type of the measurement.date
- the time of the value.public InterpolatedValue(String sensorId, Double value, MeasurementType measurementType, Date start, Date end)
sensorId
- The id of the sensor that made the measurement.value
- The value of the measurement.measurementType
- The type of the measurement.start
- the start time of the value.end
- the end time of the value.public ArrayList<String> getDefinedSensors()
public void setDefinedSensors(ArrayList<String> definedSensors)
definedSensors
- the new list of sensor ids.public void addDefinedSensor(String sensorId)
sensorId
- the sensor id.public boolean equivalent(Measurement meas)
meas
- a Measurementpublic Date getEnd()
public MeasurementType getMeasurementType()
public String getSensorId()
public Date getStart()
public Double getValue()
public void setEnd(Date end)
end
- end date to set.public void setMeasurementType(MeasurementType measurementType)
measurementType
- the measurementType to setpublic void setSensorId(String sensorId)
sensorId
- the sensorId to setpublic void setStart(Date start)
start
- the start date to set.public void setValue(Double value)
value
- the value to setpublic ArrayList<String> getReportingSensors()
public void setReportingSensors(ArrayList<String> reportingSensors)
reportingSensors
- the new list of missing sensors.public void addReportingSensor(String s)
s
- the sensorId.public String removeMissingSensor(String s)
s
- the sensorId.public boolean missingSensorsEmptyP()
Copyright © 2015 Collaborative Software Development Laboratory. All rights reserved.