org.android.activityminer.logic.devices
Interface SensorDataSource<T extends DeviceData>

Package class diagram package SensorDataSource
Type Parameters:
T - the sample type of this sample source
All Known Implementing Classes:
AbstractAccelerometerDataSource, LinearAccelerometerDataSource, LinearDeviceAccelerometerDataSource, LocationDataCache, LocationDataSource, SensorObservationCache

public interface SensorDataSource<T extends DeviceData>

Generic interface for sensor data sources


Method Summary
 void onDestroy()
          This method is for cleanup in case of termination.
 T takeSample(Long ts)
          Getter for the current sample
 

Method Detail

takeSample

T takeSample(Long ts)
Getter for the current sample

Parameters:
ts - the requested time stamp
Returns:
the current sample

onDestroy

void onDestroy()
This method is for cleanup in case of termination.