iris
Class ComEnumerator

java.lang.Object
  extended by iris.ComEnumerator

public class ComEnumerator
extends java.lang.Object

This class enumerates the IRIS receivers connected to the computer, and constructs wrappers around them.

This version uses Windows' COM ports trhough the GNU Comm library.

Author:
Christophe Jacquet, Supelec, 2006

Constructor Summary
ComEnumerator()
          Lists the IRIS receivers found on the COM ports.
 
Method Summary
 ComWrapper getComWrapper(int index)
          Returns the ComWrapper for a given receiver.
 int getCount()
          Returns the number of detected receivers.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComEnumerator

public ComEnumerator()
Lists the IRIS receivers found on the COM ports.

Method Detail

getCount

public int getCount()
Returns the number of detected receivers.

Returns:
the number of receivers

getComWrapper

public ComWrapper getComWrapper(int index)
                         throws java.lang.ArrayIndexOutOfBoundsException
Returns the ComWrapper for a given receiver.

Parameters:
index - the index of the receiver
Returns:
the corresponding wrapper
Throws:
java.lang.ArrayIndexOutOfBoundsException