public class UnisensFileAdapter
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
UnisensFileAdapter(SinkUnisensLogger sinkUnisensLogger,
java.lang.String loggingPath,
java.lang.String entryId,
java.lang.String comment,
java.lang.String sensorId,
org.unisens.FileFormat fileFormat)
Creates a new
UnisensFileAdapter . |
Modifier and Type | Method and Description |
---|---|
protected void |
appendEvent(org.unisens.Event event)
Append an event to the eventEntry.
|
protected void |
appendSignal(double[][] signalData)
Append a signal to the signalEntry.
|
protected void |
appendValue(org.unisens.Value value)
Append a value to the valuesEntry.
|
protected void |
createDataSet()
Create a new data set or open an existing data set and overwrite it.
|
protected void |
createEventEntry(DataDescription description,
int typeLength,
int commentLength)
Creates a new
EventEntry with given parameters. |
protected void |
createSignalEntry(DataDescription description)
Creates a new
SignalEntry with given parameters. |
protected void |
createValuesEntry(DataDescription description)
Creates a new
ValuesEntry with given parameters. |
protected void |
setTimestampStart(java.util.Date timestamp) |
protected void |
stop()
Close all open file connections and release token.
|
protected UnisensFileAdapter(SinkUnisensLogger sinkUnisensLogger, java.lang.String loggingPath, java.lang.String entryId, java.lang.String comment, java.lang.String sensorId, org.unisens.FileFormat fileFormat)
UnisensFileAdapter
.sinkUnisensLogger
- loggingPath
- entryId
- comment
- sensorId
- fileFormat
- protected void createSignalEntry(DataDescription description)
SignalEntry
with given parameters.protected void createValuesEntry(DataDescription description)
ValuesEntry
with given parameters.protected void createEventEntry(DataDescription description, int typeLength, int commentLength)
EventEntry
with given parameters.protected void createDataSet()
protected void appendSignal(double[][] signalData)
signalData
- protected void appendEvent(org.unisens.Event event)
event
- protected void appendValue(org.unisens.Value value)
value
- protected void stop()
protected void setTimestampStart(java.util.Date timestamp)