org.android.activityminer.persistence
Class DBSampleStatistic

Package class diagram package DBSampleStatistic
java.lang.Object
  extended by org.android.activityminer.persistence.DBSampleStatistic
All Implemented Interfaces:
Parcelable, SerializableData

public class DBSampleStatistic
extends Object
implements SerializableData, Parcelable

The database representation for for sample statistics (feature vector statistics).


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
 
Field Summary
 long activityId
          The class identifier.
static Parcelable.Creator<DBSampleStatistic> CREATOR
          The Parcelable creator.
 long recordingCount
          The count of stored recordings with the given activityId.
 long sampleCount
          The count of training samples extracted from recordings with the given activityId.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Constructor Summary
DBSampleStatistic(long activityId, long sampleCount, long recordingCount)
          Constructor
DBSampleStatistic(Parcel source)
          Constructor
 
Method Summary
 int describeContents()
           
 long getActivityId()
          Getter for the class activityId
 long getRecordingCount()
          Getter for the recording count
 long getSampleCount()
          Getter for the sample count
 String toXML()
           
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activityId

public final long activityId
The class identifier.


sampleCount

public final long sampleCount
The count of training samples extracted from recordings with the given activityId.


recordingCount

public final long recordingCount
The count of stored recordings with the given activityId.


CREATOR

public static final Parcelable.Creator<DBSampleStatistic> CREATOR
The Parcelable creator.

Constructor Detail

DBSampleStatistic

public DBSampleStatistic(long activityId,
                         long sampleCount,
                         long recordingCount)
Constructor

Parameters:
activityId - the class identifier
sampleCount - the sample count
recordingCount - the recording count

DBSampleStatistic

public DBSampleStatistic(Parcel source)
Constructor

Parameters:
source - the parcel source
Method Detail

writeToParcel

public final void writeToParcel(Parcel dest,
                                int flags)
Specified by:
writeToParcel in interface Parcelable

getActivityId

public final long getActivityId()
Getter for the class activityId

Returns:
the class activityId

getSampleCount

public final long getSampleCount()
Getter for the sample count

Returns:
the sample count

getRecordingCount

public final long getRecordingCount()
Getter for the recording count

Returns:
the recording count

toXML

public final String toXML()
                   throws Exception
Specified by:
toXML in interface SerializableData
Throws:
Exception

describeContents

public final int describeContents()
Specified by:
describeContents in interface Parcelable