org.android.activityminer.persistence
Class DBRecordingStatisticSequenceEntry

Package class diagram package DBRecordingStatisticSequenceEntry
java.lang.Object
  extended by org.android.activityminer.persistence.DBRecordingStatisticSequenceEntry

public class DBRecordingStatisticSequenceEntry
extends Object

The recording sequence statistic entries does represents a sequence of continuous taken recordings.


Nested Class Summary
static class DBRecordingStatisticSequenceEntry.Comparator
           
 
Field Summary
 List<DBRecordingStatisticEntry> recordingsSequence
          The recordings of the sequence in DB order
 long sid
          the unique recording sequence identifier
 
Constructor Summary
DBRecordingStatisticSequenceEntry(DBRecordingStatisticEntry firstEntry)
          Constructor
 
Method Summary
 ActivityLabel getActivityLabel()
          Getter for the activity label
 long getDuration()
          Getter for the duration in milliseconds
 long getFirstRecordingId()
          Getter for the identifier of the first recording in this sequence
 long getLastRecordingId()
          Getter for the identifier of the last recording in this sequence
 long getTs()
          Getter for the time stamp
 boolean hasProcessedRecordings()
          Method to test if the sequence has processed recordings
 boolean isProcessed()
          Method to test if the whole sequence is processed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sid

public final long sid
the unique recording sequence identifier


recordingsSequence

public final List<DBRecordingStatisticEntry> recordingsSequence
The recordings of the sequence in DB order

Constructor Detail

DBRecordingStatisticSequenceEntry

public DBRecordingStatisticSequenceEntry(DBRecordingStatisticEntry firstEntry)
Constructor

Parameters:
firstEntry - the first recording statistic entry to create sequence statistic for
Method Detail

getActivityLabel

public final ActivityLabel getActivityLabel()
Getter for the activity label

Returns:
the activity label

getTs

public final long getTs()
Getter for the time stamp

Returns:
the time stamp of

getDuration

public final long getDuration()
Getter for the duration in milliseconds

Returns:
the duration in milliseconds

getLastRecordingId

public final long getLastRecordingId()
Getter for the identifier of the last recording in this sequence

Returns:
the identifier of the last recording in this sequence

getFirstRecordingId

public long getFirstRecordingId()
Getter for the identifier of the first recording in this sequence

Returns:
the identifier of the first recording in this sequence

isProcessed

public final boolean isProcessed()
Method to test if the whole sequence is processed

Returns:
true if the whole sequence is processed, false otherwise

hasProcessedRecordings

public boolean hasProcessedRecordings()
Method to test if the sequence has processed recordings

Returns:
true if the sequence has processed recordings, false otherwise