2424import android .content .Context ;
2525import android .os .PowerManager ;
2626
27- import org .sensingkit .sensingkitlib .model .data .DataInterface ;
28- import org .sensingkit .sensingkitlib .modules .SensorModuleType ;
29- import org .sensingkit .sensingkitlib .modules .SensorModuleManager ;
27+ import org .sensingkit .sensingkitlib .model .data .SKDataInterface ;
28+ import org .sensingkit .sensingkitlib .modules .SKSensorModuleType ;
29+ import org .sensingkit .sensingkitlib .modules .SKSensorModuleManager ;
3030
3131
3232public class SensingKitLib implements SensingKitLibInterface {
@@ -39,7 +39,7 @@ public class SensingKitLib implements SensingKitLibInterface {
3939 private final Context mApplicationContext ;
4040 private PowerManager .WakeLock mWakeLock ;
4141
42- private SensorModuleManager mSensorModuleManager ;
42+ private SKSensorModuleManager mSensorModuleManager ;
4343
4444 @ SuppressWarnings ("unused" )
4545 public static SensingKitLibInterface getSensingKitLib (final Context context ) throws SKException {
@@ -57,56 +57,56 @@ public static SensingKitLibInterface getSensingKitLib(final Context context) thr
5757
5858 private SensingKitLib (final Context context ) throws SKException {
5959 mApplicationContext = context ;
60- mSensorModuleManager = SensorModuleManager .getSensorManager (context );
60+ mSensorModuleManager = SKSensorModuleManager .getSensorManager (context );
6161 }
6262
6363 @ Override
64- public void registerSensorModule (SensorModuleType moduleType ) throws SKException {
64+ public void registerSensorModule (SKSensorModuleType moduleType ) throws SKException {
6565 mSensorModuleManager .registerSensorModule (moduleType );
6666 }
6767
6868 @ Override
69- public void deregisterSensorModule (SensorModuleType moduleType ) throws SKException {
69+ public void deregisterSensorModule (SKSensorModuleType moduleType ) throws SKException {
7070 mSensorModuleManager .deregisterSensorModule (moduleType );
7171 }
7272
7373 @ Override
74- public boolean isSensorModuleRegistered (SensorModuleType moduleType ) throws SKException {
74+ public boolean isSensorModuleRegistered (SKSensorModuleType moduleType ) throws SKException {
7575 return mSensorModuleManager .isSensorModuleRegistered (moduleType );
7676 }
7777
7878 @ Override
79- public DataInterface getDataFromSensor (SensorModuleType moduleType ) throws SKException {
79+ public SKDataInterface getDataFromSensor (SKSensorModuleType moduleType ) throws SKException {
8080 return mSensorModuleManager .getDataFromSensor (moduleType );
8181 }
8282
8383 @ Override
84- public void subscribeSensorDataListener (SensorModuleType moduleType , SKSensorDataListener dataListener ) throws SKException {
84+ public void subscribeSensorDataListener (SKSensorModuleType moduleType , SKSensorDataListener dataListener ) throws SKException {
8585 mSensorModuleManager .subscribeSensorDataListener (moduleType , dataListener );
8686 }
8787
8888 @ Override
89- public void unsubscribeSensorDataListener (SensorModuleType moduleType , SKSensorDataListener dataListener ) throws SKException {
89+ public void unsubscribeSensorDataListener (SKSensorModuleType moduleType , SKSensorDataListener dataListener ) throws SKException {
9090 mSensorModuleManager .unsubscribeSensorDataListener (moduleType , dataListener );
9191 }
9292
9393 @ Override
94- public void unsubscribeAllSensorDataListeners (SensorModuleType moduleType ) throws SKException {
94+ public void unsubscribeAllSensorDataListeners (SKSensorModuleType moduleType ) throws SKException {
9595 mSensorModuleManager .unsubscribeAllSensorDataListeners (moduleType );
9696 }
9797
9898 @ Override
99- public void startContinuousSensingWithSensor (SensorModuleType moduleType ) throws SKException {
99+ public void startContinuousSensingWithSensor (SKSensorModuleType moduleType ) throws SKException {
100100 mSensorModuleManager .startContinuousSensingWithSensor (moduleType );
101101 }
102102
103103 @ Override
104- public void stopContinuousSensingWithSensor (SensorModuleType moduleType ) throws SKException {
104+ public void stopContinuousSensingWithSensor (SKSensorModuleType moduleType ) throws SKException {
105105 mSensorModuleManager .stopContinuousSensingWithSensor (moduleType );
106106 }
107107
108108 @ Override
109- public boolean isSensorModuleSensing (SensorModuleType moduleType ) throws SKException {
109+ public boolean isSensorModuleSensing (SKSensorModuleType moduleType ) throws SKException {
110110 return mSensorModuleManager .isSensorModuleSensing (moduleType );
111111 }
112112
0 commit comments