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

T - the enumeration type for the dimensionsU - the data type for the dimension valuespublic interface SensorObservation<T extends Enum<T> & Dimensions,U>
Generic interface for a sensor observation, which contains a time stamp and sensor values for a given sensor value dimension type.
| Method Summary | |
|---|---|
SensorObservation<T,U> |
cloneWithTimeStamp(long ts)
Does clone a sensor observation with the given time stamp. |
U |
get(T dim)
Getter for the value of a specific dimension |
T[] |
getDimensions()
Getter for the dimensions types |
Long |
getTimeStamp()
Getter for the time stamp. |
U[] |
getValues()
Getter for the values. |
boolean |
hasEqualValues(SensorObservation<T,U> observation)
Test method for equal values |
void |
set(T dim,
U value)
Setter for the value of a specific dimension |
void |
setTimeStamp(long ts)
Setter for the time stamp. |
| Method Detail |
|---|
T[] getDimensions()
U get(T dim)
dim - the dimension identifier
void set(T dim,
U value)
dim - the dimension identifiervalue - the value for the given dimensionLong getTimeStamp()
U[] getValues()
void setTimeStamp(long ts)
ts - the time stamp to setboolean hasEqualValues(SensorObservation<T,U> observation)
observation - the sensor observation to compare values with
SensorObservation<T,U> cloneWithTimeStamp(long ts)
ts - the time stamp of the cloned observation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||