org.android.activityminer.model.timeseries
Class LabeledRecording<T extends Enum<T> & Dimensions>

Package class diagram package LabeledRecording
java.lang.Object
  extended by org.android.activityminer.model.timeseries.LabeledRecording<T>
Type Parameters:
T - the enumeration type for the dimensions

public class LabeledRecording<T extends Enum<T> & Dimensions>
extends Object

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

id

public long id
the unique record identifier


sequenceId

public final long sequenceId
the unique sequence identifier (for continuous recordings)


activityLabel

public final ActivityLabel activityLabel
The activity label.


featuresExtracted

public final boolean featuresExtracted
The feature extraction state flag.


cutOut

public final SensorObservationCutout<T extends Enum<T> & Dimensions,Double> cutOut
The cut-out with the sensor observations.

Constructor Detail

LabeledRecording

public LabeledRecording(SensorObservationCutout<T,Double> cutOut,
                        ActivityLabel activityLabel,
                        boolean featuresExtracted,
                        long sequenceId)
Constructor

Parameters:
cutOut - the frame with the raw time series data
activityLabel - the activity label for the recorded time series frames
featuresExtracted - the flag if features are extracted
sequenceId - the sequence identifier of continuous recordings

LabeledRecording

public LabeledRecording(LabeledRecording<T> recording,
                        long sequenceId)
Clone Constructor with a new Sequence identifier and an invalid recording id.

Parameters:
recording - the recording to clone with new sequence id and cleared recording identifier
sequenceId - the sequence identifier of continuous recordings

LabeledRecording

public LabeledRecording(DBRecording dbRecord)
                 throws Exception
Constructor

Parameters:
dbRecord - the database representation of this record
Throws:
Exception
Method Detail

toDBRecord

public final DBRecording toDBRecord()
                             throws Exception
Method to create a database frame representation from this frame.

Returns:
a database frame representation
Throws:
Exception