public abstract class SKAbstractData extends java.lang.Object implements SKSensorData
| Modifier and Type | Field and Description |
|---|---|
protected SKSensorType |
sensorType |
protected long |
timestamp |
| Constructor and Description |
|---|
SKAbstractData(SKSensorType sensorType,
long timestamp)
Initialize the instance
|
| Modifier and Type | Method and Description |
|---|---|
SKSensorType |
getSensorType()
Get the sensor type
|
long |
getTimestamp()
Get the timestamp
|
java.lang.String |
toString()
Get the sensor data in csv format
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataInCSVprotected final SKSensorType sensorType
protected final long timestamp
public SKAbstractData(SKSensorType sensorType, long timestamp)
sensorType - of type SKSensorTypetimestamp - Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)public java.lang.String toString()
toString in class java.lang.Objectpublic SKSensorType getSensorType()
getSensorType in interface SKSensorDatapublic long getTimestamp()