public class SKMotionActivityData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected int |
activityType |
protected int |
confidence |
sensorType, timestamp
Constructor and Description |
---|
SKMotionActivityData(long timestamp,
int activityType,
int confidence)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivityString()
Get the name of the activity type
|
int |
getActivityType()
Get the activity type
|
int |
getConfidence()
Get the confidence percentage
|
java.lang.String |
getDataInCSV()
Get the Activity sensor data in csv format
|
static java.lang.String |
getNameFromActivityType(int activityType)
Get the name of an activity type
|
getSensorType, getTimestamp, toString
protected final int activityType
protected final int confidence
public SKMotionActivityData(long timestamp, int activityType, int confidence)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)activityType
- The type of the activityconfidence
- Confidence percentage for the most probable activitypublic java.lang.String getDataInCSV()
public int getActivityType()
public int getConfidence()
public java.lang.String getActivityString()
public static java.lang.String getNameFromActivityType(int activityType)
activityType
- The type of the activity