Android Open Source - senhancelib Data Sink






From Project

Back to project page senhancelib.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project senhancelib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.uos.nbp.senhance.datasource;
/*www .jav a  2  s  .  c o  m*/
/**
 *
 * EventSink is the counterpart to EventSource and is a consumer of the
 * events. These data events are at the moment assumed to be
 * heart-related events but this could conceivably be generalized.
 * 
 * The implementing class of an EventSink must provide a clock mapping
 * to relate event reception to event 'playback' and deal with variable
 * latency in the event production process.
 *
 * Implementing classes should be thread safe. The trigger, 
 * updateClockMapping and resetClockMapping functions
 * may be called from threads other than the constructing thread.
 *
 * @author rmuil
 */
public interface DataSink {
  static final int DefaultThreadPriority = Thread.MAX_PRIORITY;

  void init();
  void trigger(long sampleTime, boolean isPulse, int rawData);
  int updateClockMapping (long receptionTime, long sampleTime);
  void resetClockMapping ();
  void play();
  void pause();
}




Java Source Code List

de.uos.nbp.BooleanProperties.java
de.uos.nbp.Utils.java
de.uos.nbp.senhance.DataLogger.java
de.uos.nbp.senhance.ECGCsvReader.java
de.uos.nbp.senhance.EventLoggingActivity.java
de.uos.nbp.senhance.EventSequenceAdapter.java
de.uos.nbp.senhance.EventTag.java
de.uos.nbp.senhance.LoggerApplication.java
de.uos.nbp.senhance.SDLogger.java
de.uos.nbp.senhance.bluetooth.BluetoothPacketConnection.java
de.uos.nbp.senhance.bluetooth.BluetoothService.java
de.uos.nbp.senhance.bluetooth.DeviceListActivity.java
de.uos.nbp.senhance.bluetooth.FramedPacketConnection.java
de.uos.nbp.senhance.bluetooth.PacketConnectionHandler.java
de.uos.nbp.senhance.bluetooth.PacketConnection.java
de.uos.nbp.senhance.datasource.ControlSource.java
de.uos.nbp.senhance.datasource.DataSink.java
de.uos.nbp.senhance.datasource.DataSourceBase.java
de.uos.nbp.senhance.datasource.DataSource.java
de.uos.nbp.senhance.datasource.DummySourceThread.java