gnu.io
Interface CommDriver

All Known Implementing Classes:
RXTXCommDriver

public interface CommDriver

Since:
JDK1.0
Version:
%I%, %G%
Author:
Trent Jarvi

Method Summary
 CommPortInterface getCommPort(java.lang.String portName, int portType)
          This method will be called on CommPortIdentifier.open.
 void initialize()
          This method ensures that the hardware is present, loads any native libraries, and registers the port names with the CommPortIdentifier.
 

Method Detail

getCommPort

CommPortInterface getCommPort(java.lang.String portName,
                              int portType)
This method will be called on CommPortIdentifier.open.

Parameters:
portName - a string registered earlier using CommPortIdentifier.addPortName
portType - the port type
Returns:
a CommPort instance

initialize

void initialize()
This method ensures that the hardware is present, loads any native libraries, and registers the port names with the CommPortIdentifier.