iris
Class ComWrapper

java.lang.Object
  extended by iris.ComWrapper

public class ComWrapper
extends java.lang.Object

This class is a wrapper around the low-level I/O communication layer. It looks for an IRIS receiver and can read lines from it.

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

Author:
Christophe Jacquet, Supelec, 2006

Method Summary
 java.lang.String getPortName()
          Returns the name of the port on which the receiver is connected.
 java.lang.String getVersionId()
          Returns the IRIS receiver's version string.
 java.lang.String readLine()
          Blocks until a line of text is available from the IRIS receiver, and then returns its contents.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVersionId

public java.lang.String getVersionId()
Returns the IRIS receiver's version string.

Returns:
the version string

getPortName

public java.lang.String getPortName()
Returns the name of the port on which the receiver is connected.

Returns:
the port name

readLine

public java.lang.String readLine()
Blocks until a line of text is available from the IRIS receiver, and then returns its contents.

Returns:
a line of text from the IRIS receiver