|
ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.github.mrstampy.esp.dsp.lab.AbstractRawEspConnection<MultiConnectOpenBCISocket>
com.github.mrstampy.esp.openbci.OpenBCIConnection
public class OpenBCIConnection
The Class OpenBCIConnection.
| Constructor Summary | |
|---|---|
OpenBCIConnection()
Instantiates a new open bci connection. |
|
OpenBCIConnection(boolean broadcast)
Instantiates a new open bci connection. |
|
| Method Summary | |
|---|---|
double[][] |
getCurrent()
Return the current second's worth of samples. |
double[][] |
getCurrent(int numSamples)
Return the specified number of the current second's worth of samples. |
double[][] |
getCurrentFor(int channelNumber)
Return the current second's worth of samples for the specified channel. |
double[][] |
getCurrentFor(int numSamples,
int channelNumber)
Return the specified number of the current second's worth of samples for the specified channel. |
AbstractDSPValues |
getDSPValues()
Return the DSP values. |
java.lang.String |
getName()
Return a name identifier. |
MultiConnectOpenBCISocket |
getSocket()
Gets the socket. |
EspSignalUtilities |
getUtilities()
Return the utilities. |
void |
start()
Connects to the socket. |
void |
stop()
Closes the connection to the AbstractMultiConnectionSocket socket. |
| Methods inherited from class com.github.mrstampy.esp.dsp.lab.AbstractRawEspConnection |
|---|
addConnectionEventListener, bindBroadcaster, canBroadcast, clearConnectionEventListeners, getChannel, getChannels, getDefaultLab, getNumChannels, getWindowFunction, isBound, isConnected, removeConnectionEventListener, setWindowFunction, unbindBroadcaster |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenBCIConnection()
throws java.io.IOException
java.io.IOException - Signals that an I/O exception has occurred.
public OpenBCIConnection(boolean broadcast)
throws java.io.IOException
broadcast - the broadcast
java.io.IOException - Signals that an I/O exception has occurred.| Method Detail |
|---|
public void start()
throws MultiConnectionSocketException
MultiConnectionSocket
start in interface MultiConnectionSocketstart in class AbstractRawEspConnection<MultiConnectOpenBCISocket>MultiConnectionSocketException - if already connected or an unexpected error occurspublic void stop()
MultiConnectionSocketAbstractMultiConnectionSocket socket.
stop in interface MultiConnectionSocketstop in class AbstractRawEspConnection<MultiConnectOpenBCISocket>public EspSignalUtilities getUtilities()
RawEspConnection
public AbstractDSPValues getDSPValues()
RawEspConnection
public double[][] getCurrent()
RawEspConnection
public double[][] getCurrent(int numSamples)
RawEspConnection
numSamples - the num samples
public double[][] getCurrentFor(int channelNumber)
RawEspConnection
channelNumber - the channel number
public double[][] getCurrentFor(int numSamples,
int channelNumber)
RawEspConnection
numSamples - the num sampleschannelNumber - the channel number
public java.lang.String getName()
RawEspConnection
public MultiConnectOpenBCISocket getSocket()
AbstractRawEspConnection
getSocket in class AbstractRawEspConnection<MultiConnectOpenBCISocket>
|
brought to you by Mr. Stampy | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||