mindio
Interface Terminal


public interface Terminal

Contains Rx and Tx objects. The Terminal interface will be implemented by source objects (e.g. for communicatication with ModularEEG), signal manipulation objects (such as a filter or threshold object), and output objects (e.g. to output on screen, audio output, LED goggles, etc.) Each Terminal can contain zero or more Tx objects and zero or more Rx objects.


Method Summary
 java.lang.String getName()
          returns the name of the Terminal
 int getNumRxs()
          returns the number of Rx objects in the Terminal
 int getNumTxs()
          returns the number of Tx objects in the Terminal
 java.lang.Object getProperty(java.lang.String name)
          returns the value of a property
 java.util.Enumeration getPropertyNames()
          returns an Enumeration of the names of the Terminal's properties
 Rx getRx(int i)
          returns the Rx object with index i
 java.util.List getRxs()
          returns a list of all Rx objects in the Terminal
 Tx getTx(int i)
          returns the Tx object with index i
 java.util.List getTxs()
          returns a list of all Tx objects in the Terminal
 void setName(java.lang.String name)
          sets the name of the Terminal
 java.lang.Object setProperty(java.lang.String name, java.lang.Object value)
          sets the value of a property
 

Method Detail

getName

public java.lang.String getName()
returns the name of the Terminal


setName

public void setName(java.lang.String name)
sets the name of the Terminal


getNumTxs

public int getNumTxs()
returns the number of Tx objects in the Terminal


getTxs

public java.util.List getTxs()
returns a list of all Tx objects in the Terminal


getTx

public Tx getTx(int i)
returns the Tx object with index i


getNumRxs

public int getNumRxs()
returns the number of Rx objects in the Terminal


getRxs

public java.util.List getRxs()
returns a list of all Rx objects in the Terminal


getRx

public Rx getRx(int i)
returns the Rx object with index i


getPropertyNames

public java.util.Enumeration getPropertyNames()
returns an Enumeration of the names of the Terminal's properties


getProperty

public java.lang.Object getProperty(java.lang.String name)
returns the value of a property

Parameters:
name - the name of the property whose value is to be retrieved.
Returns:
the value of the property identified by name.

setProperty

public java.lang.Object setProperty(java.lang.String name,
                                    java.lang.Object value)
sets the value of a property

Parameters:
name - the name of the property whose value is to be set
value - the name value of the property
Returns:
the old value of the property