|
||||||||||
| 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 SensorObservationCutout<T extends Enum<T> & Dimensions,U>
Interface for sensor observation cut-out types.
| Method Summary | |
|---|---|
void |
addObservation(SensorObservation<T,U> observation)
Method to add a sensor observation to this type. |
void |
addObservations(List<? extends SensorObservation<T,U>> observations)
Method to add a sample collection to this type. |
void |
clear()
Method to clear the current content. |
void |
cutBeforeTime(long startTimeStamp)
Method to cut the cut-out by removing all observations younger than the given time stamp. |
List<U> |
getDimensionValues(T dimension)
Getter for the values of a specific dimension. |
U[] |
getDimensionValuesAsArray(T dimension)
Getter for the values of a specific dimension as array. |
long |
getDuration()
Getter for the duration of the sensor observation series. |
SensorObservation<T,U> |
getSensorObservation(int pos)
Getter for the sensor observations at a given position. |
List<SensorObservation<T,U>> |
getSensorObservations()
Getter for the sensor observations. |
List<SensorObservation<T,U>> |
getSensorObservations(int startPos,
int cnt)
Getter for the given count of sensor observations from a given start position. |
long |
getStartTime()
getter for the start time |
Long |
getTimeStamp(int index)
Getter for the time stamp at the given index. |
List<Long> |
getTimeStamps()
Getter for the time stamps of the sensor observation series. |
Long[] |
getTimeStampsAsArray()
Getter for the time stamps the sensor observation series as Array. |
U |
getValue(T dimension,
int index)
Getter for a single sensor value of a specific dimension at the given index. |
int |
size()
Getter for the frame size ( current sample count in this frame ). |
void |
truncateAfterTime(long maxTimeStamp)
Method to truncate the cut-out by removing all observations older than the given time stamp. |
| Methods inherited from interface de.unikassel.android.sdcframework.data.independent.SerializableData |
|---|
toXML |
| Method Detail |
|---|
int size()
List<U> getDimensionValues(T dimension)
dimension - the requested dimension
U[] getDimensionValuesAsArray(T dimension)
dimension - the requested dimension
U getValue(T dimension,
int index)
dimension - the requested sensor observation dimensionindex - the index position in the time series of sensor observations
List<Long> getTimeStamps()
Long getTimeStamp(int index)
index - the index position in the time series of sensor observations
long getDuration()
Long[] getTimeStampsAsArray()
List<SensorObservation<T,U>> getSensorObservations()
List<SensorObservation<T,U>> getSensorObservations(int startPos,
int cnt)
startPos - the start positioncnt - the count
SensorObservation<T,U> getSensorObservation(int pos)
pos - the position
void addObservation(SensorObservation<T,U> observation)
observation - the observation to addvoid addObservations(List<? extends SensorObservation<T,U>> observations)
observations - the observations to addvoid clear()
void truncateAfterTime(long maxTimeStamp)
maxTimeStamp - the maximum time stamp to truncate forvoid cutBeforeTime(long startTimeStamp)
startTimeStamp - the new minimum time stamp to set as start timelong getStartTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||