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, wait
getDataInCSV
protected 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.Object
public SKSensorType getSensorType()
getSensorType
in interface SKSensorData
public long getTimestamp()