ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.openbci.subscription
Class OpenBCIEvent

java.lang.Object
  extended by com.github.mrstampy.esp.multiconnectionsocket.event.AbstractMultiConnectionEvent<OpenBCIEventType>
      extended by com.github.mrstampy.esp.openbci.subscription.OpenBCIEvent
All Implemented Interfaces:
java.io.Serializable

public class OpenBCIEvent
extends AbstractMultiConnectionEvent<OpenBCIEventType>

The Class OpenBCIEvent.

See Also:
Serialized Form

Constructor Summary
OpenBCIEvent(double[] sample, int channelNumber)
          Instantiates a new open bci event.
 
Method Summary
 int getChannelNumber()
          Gets the channel number.
 double[] getSample()
          Gets the sample.
 
Methods inherited from class com.github.mrstampy.esp.multiconnectionsocket.event.AbstractMultiConnectionEvent
getCreateTimestamp, getEventType, getNanoTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenBCIEvent

public OpenBCIEvent(double[] sample,
                    int channelNumber)
Instantiates a new open bci event.

Parameters:
sample - the sample
channelNumber - the channel number
Method Detail

getSample

public double[] getSample()
Gets the sample.

Returns:
the sample

getChannelNumber

public int getChannelNumber()
Gets the channel number.

Returns:
the channel number

brought to you by Mr. Stampy