public class DataEvent extends DataEntry
EventEntry
as
specified in the Unisens
specification: Constructor and Description |
---|
DataEvent(long samplestamp,
java.lang.String type,
java.lang.String comment,
DataDescription description)
Creates a new
DataEvent . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Returns the
DataEvent 's comment. |
long |
getSamplestamp()
Returns the sample-stamp of this
DataEvent . |
long |
getTimeStamp()
Returns the actual time-stamp of this
DataEvent . |
java.lang.String |
getType()
|
getDescription, setDescription
public DataEvent(long samplestamp, java.lang.String type, java.lang.String comment, DataDescription description)
DataEvent
.samplestamp
- the sample-stamp of this event in the corresponding sample.
rate.type
- the DataType
of this event.comment
- an optional comment.descriptionId
- a reference to the DataDescription
object.public long getSamplestamp()
DataEvent
.DataEvent
s that would have to be sent as defined by it's
sample-rate to achieve it's time-stamp.getTimeStamp()
,
DataDescription.getSampleRate()
public long getTimeStamp()
DataEvent
.DataDescription.getSampleRate()
):DataEvent
's time-stamp (in ms)