public class IntervalValue extends Object
Modifier | Constructor and Description |
---|---|
protected |
IntervalValue()
Hide the default constructor.
|
|
IntervalValue(String sensorId,
Double value,
MeasurementType measurementType,
Date start,
Date end)
Creates a new IntervalValue.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getEnd() |
MeasurementType |
getMeasurementType() |
String |
getSensorId() |
Date |
getStart() |
Double |
getValue() |
int |
hashCode() |
void |
setEnd(Date end) |
void |
setMeasurementType(MeasurementType measurementType) |
void |
setSensorId(String sensorId) |
void |
setStart(Date start) |
void |
setValue(Double value) |
String |
toString() |
protected IntervalValue()
public IntervalValue(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 of the interval.end
- the end of the interval.public Date getEnd()
public MeasurementType getMeasurementType()
public String getSensorId()
public Date getStart()
public Double getValue()
public void setEnd(Date end)
end
- the end to setpublic 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 to setpublic void setValue(Double value)
value
- the value to setCopyright © 2015 Collaborative Software Development Laboratory. All rights reserved.