ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.dsp
Class AbstractDSPValues

java.lang.Object
  extended by com.github.mrstampy.esp.dsp.AbstractDSPValues
Direct Known Subclasses:
OpenBCIDSPValues

public abstract class AbstractDSPValues
extends java.lang.Object

The Class AbstractDSPValues.


Field Summary
static int ONE_BILLION
          The Constant ONE_BILLION.
static int ONE_MILLION
          The Constant ONE_MILLION.
static int ONE_THOUSAND
          The Constant ONE_THOUSAND.
 
Constructor Summary
protected AbstractDSPValues()
          Call this constructor from subclasses.
 
Method Summary
 void addDSPValueListener(DSPValueListener l)
          Adds the dsp value listener.
 int getSampleRate()
          Gets the sample rate.
 long getSampleRateSleepTime()
          Gets the sample rate sleep time.
 java.util.concurrent.TimeUnit getSampleRateUnits()
          Gets the sample rate units.
 int getSampleSize()
          Gets the sample size.
protected abstract  void initialize()
          Initialize.
 void removeDSPValueListener(DSPValueListener l)
          Removes the dsp value listener.
 void setSampleRate(int sampleRate)
          Sets the sample rate.
 void setSampleSize(int sampleSize)
          Sets the sample size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE_THOUSAND

public static final int ONE_THOUSAND
The Constant ONE_THOUSAND.

See Also:
Constant Field Values

ONE_MILLION

public static final int ONE_MILLION
The Constant ONE_MILLION.

See Also:
Constant Field Values

ONE_BILLION

public static final int ONE_BILLION
The Constant ONE_BILLION.

See Also:
Constant Field Values
Constructor Detail

AbstractDSPValues

protected AbstractDSPValues()
Call this constructor from subclasses.

Method Detail

initialize

protected abstract void initialize()
Initialize.


addDSPValueListener

public void addDSPValueListener(DSPValueListener l)
Adds the dsp value listener.

Parameters:
l - the l

removeDSPValueListener

public void removeDSPValueListener(DSPValueListener l)
Removes the dsp value listener.

Parameters:
l - the l

getSampleRate

public int getSampleRate()
Gets the sample rate.

Returns:
the sample rate

setSampleRate

public void setSampleRate(int sampleRate)
Sets the sample rate.

Parameters:
sampleRate - the new sample rate

getSampleRateUnits

public java.util.concurrent.TimeUnit getSampleRateUnits()
Gets the sample rate units.

Returns:
the sample rate units

getSampleSize

public int getSampleSize()
Gets the sample size.

Returns:
the sample size

setSampleSize

public void setSampleSize(int sampleSize)
Sets the sample size.

Parameters:
sampleSize - the new sample size

getSampleRateSleepTime

public long getSampleRateSleepTime()
Gets the sample rate sleep time.

Returns:
the sample rate sleep time

brought to you by Mr. Stampy