|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.timeseries.AbstractSensorObservation<SensorObservationDimensions>
org.android.activityminer.model.timeseries.SensorObservationImpl
public class SensorObservationImpl
Implementation of the sensor data observation for all known sensors.
Field Summary |
---|
Fields inherited from class org.android.activityminer.model.timeseries.AbstractSensorObservation |
---|
ts, values |
Constructor Summary | |
---|---|
SensorObservationImpl(Long ts,
AccelerometerData acc,
NetworkLocationData loc)
Constructor |
|
SensorObservationImpl(Long ts,
Double[] values)
Constructor for serialization |
|
SensorObservationImpl(Long ts,
Double magintude,
Double accX,
Double accY,
Double accZ,
Double gx,
Double gy,
Double gz,
Double lon,
Double lat,
Double speed)
Constructor |
Method Summary | |
---|---|
SensorObservation<SensorObservationDimensions,Double> |
cloneWithTimeStamp(long ts)
Does clone a sensor observation with the given time stamp. |
SensorObservationDimensions[] |
getDimensions()
Getter for the dimensions types |
Methods inherited from class org.android.activityminer.model.timeseries.AbstractSensorObservation |
---|
get, getTimeStamp, getValues, hasEqualValues, set, setTimeStamp, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SensorObservationImpl(Long ts, AccelerometerData acc, NetworkLocationData loc)
ts
- the time stampacc
- the accelerometer sample dataloc
- the location sample datapublic SensorObservationImpl(Long ts, Double magintude, Double accX, Double accY, Double accZ, Double gx, Double gy, Double gz, Double lon, Double lat, Double speed)
ts
- the time stampmagintude
- the acceleration normaccX
- the x accelerationaccY
- the y accelerationaccZ
- the z accelerationgx
- the force of gravity for axis xgy
- the force of gravity for axis ygz
- the force of gravity for axis zlon
- the longitudelat
- the latitudespeed
- the speed over groundpublic SensorObservationImpl(Long ts, Double[] values)
ts
- the time stampvalues
- the valuesMethod Detail |
---|
public final SensorObservationDimensions[] getDimensions()
SensorObservation
public SensorObservation<SensorObservationDimensions,Double> cloneWithTimeStamp(long ts)
SensorObservation
ts
- the time stamp of the cloned observation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |