|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.android.activityminer.model.timeseries.AbstractSensorObservation<AccSensorObservationDimensions>
org.android.activityminer.model.timeseries.AccSensorObservationImpl
public class AccSensorObservationImpl
Implementation of a sensor data observation from the accelerometer sensor.
Field Summary |
---|
Fields inherited from class org.android.activityminer.model.timeseries.AbstractSensorObservation |
---|
ts, values |
Constructor Summary | |
---|---|
AccSensorObservationImpl(Long ts,
AccelerometerData acc)
Constructor |
|
AccSensorObservationImpl(Long ts,
Double[] values)
Constructor for serialization |
|
AccSensorObservationImpl(Long ts,
Double magintude,
Double accX,
Double accY,
Double accZ,
Double gx,
Double gy,
Double gz)
Constructor |
Method Summary | |
---|---|
SensorObservation<AccSensorObservationDimensions,Double> |
cloneWithTimeStamp(long ts)
Does clone a sensor observation with the given time stamp. |
AccSensorObservationDimensions[] |
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 AccSensorObservationImpl(Long ts, AccelerometerData acc)
ts
- the time stampacc
- the accelerometer sample datapublic AccSensorObservationImpl(Long ts, Double magintude, Double accX, Double accY, Double accZ, Double gx, Double gy, Double gz)
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 zpublic AccSensorObservationImpl(Long ts, Double[] values)
ts
- the time stampvalues
- the valuesMethod Detail |
---|
public final AccSensorObservationDimensions[] getDimensions()
SensorObservation
public SensorObservation<AccSensorObservationDimensions,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 |