|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.timeseries.LabeledRecording<T>
T
- the enumeration type for the dimensionspublic class LabeledRecording<T extends Enum<T> & Dimensions>
A wrapper for sensor observations cut-outs associated with an activity label and a recording time stamp. This is a special type for database access.
Field Summary | |
---|---|
ActivityLabel |
activityLabel
The activity label. |
SensorObservationCutout<T,Double> |
cutOut
The cut-out with the sensor observations. |
boolean |
featuresExtracted
The feature extraction state flag. |
long |
id
the unique record identifier |
long |
sequenceId
the unique sequence identifier (for continuous recordings) |
Constructor Summary | |
---|---|
LabeledRecording(DBRecording dbRecord)
Constructor |
|
LabeledRecording(LabeledRecording<T> recording,
long sequenceId)
Clone Constructor with a new Sequence identifier and an invalid recording id. |
|
LabeledRecording(SensorObservationCutout<T,Double> cutOut,
ActivityLabel activityLabel,
boolean featuresExtracted,
long sequenceId)
Constructor |
Method Summary | |
---|---|
DBRecording |
toDBRecord()
Method to create a database frame representation from this frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public long id
public final long sequenceId
public final ActivityLabel activityLabel
public final boolean featuresExtracted
public final SensorObservationCutout<T extends Enum<T> & Dimensions,Double> cutOut
Constructor Detail |
---|
public LabeledRecording(SensorObservationCutout<T,Double> cutOut, ActivityLabel activityLabel, boolean featuresExtracted, long sequenceId)
cutOut
- the frame with the raw time series dataactivityLabel
- the activity label for the recorded time series framesfeaturesExtracted
- the flag if features are extractedsequenceId
- the sequence identifier of continuous recordingspublic LabeledRecording(LabeledRecording<T> recording, long sequenceId)
recording
- the recording to clone with new sequence id and cleared recording identifiersequenceId
- the sequence identifier of continuous recordingspublic LabeledRecording(DBRecording dbRecord) throws Exception
dbRecord
- the database representation of this record
Exception
Method Detail |
---|
public final DBRecording toDBRecord() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |