public class DataValue extends DataEntry
Unisens
specification:Constructor and Description |
---|
DataValue(double[] data,
long samplestamp,
DataDescription description)
Creates a new
DataValue . |
Modifier and Type | Method and Description |
---|---|
double[] |
getDataValue()
Returns the
DataValue 's data values. |
long |
getSamplestamp()
Returns the
DataValue 's sample-stamp. |
long |
getTimeStamp()
Returns the actual time-stamp of this
DataValue . |
getDescription, setDescription
public DataValue(double[] data, long samplestamp, DataDescription description)
DataValue
.data
- the available values for all channels of this value.samplestamp
- the sample-stamp of this value in the corresponding sample.
ratedescriptionId
- a reference to the DataDescription
object.public long getSamplestamp()
DataValue
's sample-stamp.
A sample-stamp is not equal to a time-stamp. It simply defines the number
of DataValue
s that would have to be sent as defined by it's
sample-rate to achieve it's time-stamp.DataValue
's sample-stamp.getTimeStamp()
,
DataDescription.getSampleRate()
public long getTimeStamp()
DataValue
.DataDescription.getSampleRate()
):DataValue
's time-stamp (in ms)getSamplestamp()()
,
DataDescription.getSampleRate()