de.unikassel.android.sdcframework.broadcast.facade
Interface SampleBroadcastService

Package class diagram package SampleBroadcastService
All Superinterfaces:
AsynchrounousSampleObserver, DelegatingSampleObserver, LifeCycleObject, WorkerThread
All Known Implementing Classes:
SampleBroadcastServiceImpl

public interface SampleBroadcastService
extends AsynchrounousSampleObserver

Interface for the sample broadcast service class.

It's main purpose is to observe the sensor device manager for samples. It does collect the observed samples in a thread safe queue while running an asynchronous broadcast service, which does broadcast the collected samples in the form of Intents to the system. That way the main framework thread will not be occupied by sample processing tasks.
The dispatcher thread is a worker thread, which can be started, stopped and restarted if necessary.

See Also:
SensorDeviceManager

Method Summary
 void updateFrequency(long frequency)
          Method to update the frequency of broadcasts in milliseconds (>= 0 ms).
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.LifeCycleObject
onCreate, onDestroy, onPause, onResume
 
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.DelegatingSampleObserver
getObserver
 

Method Detail

updateFrequency

void updateFrequency(long frequency)
Method to update the frequency of broadcasts in milliseconds (>= 0 ms).

Parameters:
frequency - the new frequency value