ESP OpenBCI - An EEG Signal Processing Library for OpenBCI Hardware

com.github.mrstampy.esp.multiconnectionsocket
Class ConnectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.github.mrstampy.esp.multiconnectionsocket.ConnectionEvent
All Implemented Interfaces:
java.io.Serializable

public class ConnectionEvent
extends java.util.EventObject

Event object created when the connected state of the AbstractMultiConnectionSocket changes.

Author:
burton
See Also:
ConnectionEventListener, AbstractMultiConnectionSocket, Serialized Form

Nested Class Summary
static class ConnectionEvent.State
          The Enum State.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ConnectionEvent(java.lang.Object source, ConnectionEvent.State state)
          Instantiates a new connection event.
 
Method Summary
 ConnectionEvent.State getState()
          Gets the state.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionEvent

public ConnectionEvent(java.lang.Object source,
                       ConnectionEvent.State state)
Instantiates a new connection event.

Parameters:
source - the source
state - the state
Method Detail

getState

public ConnectionEvent.State getState()
Gets the state.

Returns:
the state

brought to you by Mr. Stampy