ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.openbci
Class OpenBCISubscriptionHandlerAdapter

java.lang.Object
  extended by org.apache.mina.core.service.IoHandlerAdapter
      extended by com.github.mrstampy.esp.multiconnectionsocket.AbstractSubscriptionHandlerAdapter<OpenBCIEventType,MultiConnectOpenBCISocket,OpenBCISubscriptionRequest>
          extended by com.github.mrstampy.esp.openbci.OpenBCISubscriptionHandlerAdapter
All Implemented Interfaces:
org.apache.mina.core.service.IoHandler

public class OpenBCISubscriptionHandlerAdapter
extends AbstractSubscriptionHandlerAdapter<OpenBCIEventType,MultiConnectOpenBCISocket,OpenBCISubscriptionRequest>

The Class OpenBCISubscriptionHandlerAdapter.


Constructor Summary
OpenBCISubscriptionHandlerAdapter(MultiConnectOpenBCISocket socket)
          Instantiates a new open bci subscription handler adapter.
 
Method Summary
 void messageReceived(org.apache.mina.core.session.IoSession session, java.lang.Object message)
          Implement to deal with subscription requests & any other message types the subclass must deal with.
 
Methods inherited from class com.github.mrstampy.esp.multiconnectionsocket.AbstractSubscriptionHandlerAdapter
createHostPort, getSocket, sendMultiConnectionEvent, sessionClosed, setSocket, subscribe
 
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter
exceptionCaught, messageSent, sessionCreated, sessionIdle, sessionOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenBCISubscriptionHandlerAdapter

public OpenBCISubscriptionHandlerAdapter(MultiConnectOpenBCISocket socket)
Instantiates a new open bci subscription handler adapter.

Parameters:
socket - the socket
Method Detail

messageReceived

public void messageReceived(org.apache.mina.core.session.IoSession session,
                            java.lang.Object message)
                     throws java.lang.Exception
Description copied from class: AbstractSubscriptionHandlerAdapter
Implement to deal with subscription requests & any other message types the subclass must deal with.

Specified by:
messageReceived in interface org.apache.mina.core.service.IoHandler
Specified by:
messageReceived in class AbstractSubscriptionHandlerAdapter<OpenBCIEventType,MultiConnectOpenBCISocket,OpenBCISubscriptionRequest>
Parameters:
session - the session
message - the message
Throws:
java.lang.Exception - the exception
See Also:
AbstractSubscriptionHandlerAdapter.subscribe(IoSession, MultiConnectionSubscriptionRequest)

brought to you by Mr. Stampy