ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.openbci
Class SampleBuffer

java.lang.Object
  extended by com.github.mrstampy.esp.multiconnectionsocket.RawDataSampleBuffer<byte[]>
      extended by com.github.mrstampy.esp.openbci.SampleBuffer
All Implemented Interfaces:
ConnectionEventListener, java.util.EventListener

public class SampleBuffer
extends RawDataSampleBuffer<byte[]>

The Class SampleBuffer.


Constructor Summary
SampleBuffer(int channelNumber)
          Instantiates a new sample buffer.
 
Method Summary
 void addSample(byte[] buffer)
          Adds the sample.
 int getChannelNumber()
          Gets the channel number.
 
Methods inherited from class com.github.mrstampy.esp.multiconnectionsocket.RawDataSampleBuffer
addSampleImpl, clear, connectionEventPerformed, getBufferSize, getFftSize, getSnapshot, setBufferSize, setFftSize, stopTuning, tune
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleBuffer

public SampleBuffer(int channelNumber)
Instantiates a new sample buffer.

Parameters:
channelNumber - the channel number
Method Detail

getChannelNumber

public int getChannelNumber()
Gets the channel number.

Returns:
the channel number

addSample

public void addSample(byte[] buffer)
Description copied from class: RawDataSampleBuffer
Adds the sample.

Specified by:
addSample in class RawDataSampleBuffer<byte[]>
Parameters:
buffer - the sample

brought to you by Mr. Stampy