serialPort.rxtx
Class RXTXCommDriver

java.lang.Object
  extended by serialPort.rxtx.RXTXCommDriver
All Implemented Interfaces:
CommDriver

public class RXTXCommDriver
extends java.lang.Object
implements CommDriver

This is the JavaComm for Linux driver.


Constructor Summary
RXTXCommDriver()
           
 
Method Summary
 CommPortInterface getCommPort(java.lang.String PortName, int PortType)
          This method will be called on CommPortIdentifier.open.
 void initialize()
          Determine the OS and where the OS has the devices located We are tempted not to initialize the drive multiple times, however, port status may change over time.
static void main(java.lang.String[] args)
           
static void Report(java.lang.String arg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RXTXCommDriver

public RXTXCommDriver()
Method Detail

initialize

public void initialize()
Determine the OS and where the OS has the devices located We are tempted not to initialize the drive multiple times, however, port status may change over time.

Specified by:
initialize in interface CommDriver

getCommPort

public CommPortInterface getCommPort(java.lang.String PortName,
                                     int PortType)
Description copied from interface: CommDriver
This method will be called on CommPortIdentifier.open.

Specified by:
getCommPort in interface CommDriver
Parameters:
PortName - The name of the port the OS recognizes
PortType - CommPortIdentifier.PORT_SERIAL or PORT_PARALLEL
Returns:
a CommPort instance getCommPort() will be called by CommPortIdentifier from its openPort() method. PortName is a string that was registered earlier using the CommPortIdentifier.addPortName() method. getCommPort() returns an object that extends either SerialPort or ParallelPort.

Report

public static void Report(java.lang.String arg)

main

public static void main(java.lang.String[] args)