com.proatech.bioera.external
Interface ExternalSinkIf


public interface ExternalSinkIf

This interface is implemented by external class that receives data samples from BioEra. The class must also implement empty (no parameter) public constructor. If this class requires access to dynamic actions performed by BioEra (like start, stop etc), then it should also implement externalInit interface.


Method Summary
 int getInputChannelCount()
          Returns number of input channels
 java.lang.String getInputChannelName(int channel)
          Define channel name.
 int processInputData(int channel, double[] buffer, int available)
          This method is called from BioEra when input data is available in Float external element.
 int processInputData(int channel, float[] buffer, int available)
          This method is called from BioEra when input data is available in Float external element.
 int processInputData(int channel, int[] buffer, int available)
          This method is called from BioEra when input data is available in Scalar external element.
 

Method Detail

processInputData

int processInputData(int channel,
                     int[] buffer,
                     int available)
This method is called from BioEra when input data is available in Scalar external element. It provides pipe buffer and number of data available It must return number of data (samples) which has been processed.


processInputData

int processInputData(int channel,
                     float[] buffer,
                     int available)
This method is called from BioEra when input data is available in Float external element. It provides buffer and number data available It must return number of data (samples) which have been processed.


processInputData

int processInputData(int channel,
                     double[] buffer,
                     int available)
This method is called from BioEra when input data is available in Float external element. It provides buffer and number data available It must return number of data (samples) which have been processed.


getInputChannelCount

int getInputChannelCount()
Returns number of input channels


getInputChannelName

java.lang.String getInputChannelName(int channel)
Define channel name. This name will be visible on the element's pipe.