|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.android.activityminer.model.timeseries.AbstractSensorObservation<T>
T - the enumeration type for the dimensionspublic abstract class AbstractSensorObservation<T extends Enum<T> & Dimensions>
The abstract base implementation for sensor observations.
| Field Summary | |
|---|---|
Long |
ts
The sample time stamp. |
protected Double[] |
values
The sample data vector. |
| Constructor Summary | |
|---|---|
AbstractSensorObservation(Long ts,
Double[] values)
Constructor for serialization |
|
| Method Summary | |
|---|---|
Double |
get(T dim)
Getter for the value of a specific dimension |
Long |
getTimeStamp()
Getter for the time stamp. |
Double[] |
getValues()
Getter for the values. |
boolean |
hasEqualValues(SensorObservation<T,Double> observation)
Test method for equal values |
void |
set(T dim,
Double value)
Setter for the value of a specific dimension |
void |
setTimeStamp(long ts)
Setter for the time stamp. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.android.activityminer.model.timeseries.SensorObservation |
|---|
cloneWithTimeStamp, getDimensions |
| Field Detail |
|---|
public Long ts
protected final Double[] values
| Constructor Detail |
|---|
public AbstractSensorObservation(Long ts,
Double[] values)
ts - the time stampvalues - the values| Method Detail |
|---|
public final void set(T dim,
Double value)
SensorObservation
set in interface SensorObservation<T extends Enum<T> & Dimensions,Double>dim - the dimension identifiervalue - the value for the given dimensionpublic final Double get(T dim)
SensorObservation
get in interface SensorObservation<T extends Enum<T> & Dimensions,Double>dim - the dimension identifier
public final Long getTimeStamp()
SensorObservation
getTimeStamp in interface SensorObservation<T extends Enum<T> & Dimensions,Double>public void setTimeStamp(long ts)
SensorObservation
setTimeStamp in interface SensorObservation<T extends Enum<T> & Dimensions,Double>ts - the time stamp to setpublic final Double[] getValues()
SensorObservation
getValues in interface SensorObservation<T extends Enum<T> & Dimensions,Double>public boolean hasEqualValues(SensorObservation<T,Double> observation)
SensorObservation
hasEqualValues in interface SensorObservation<T extends Enum<T> & Dimensions,Double>observation - the sensor observation to compare values with
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||