com.esf.core.system.manager.service
Class EsfSerialPort

java.lang.Object
  extended by com.esf.core.system.manager.service.EsfSerialPort

public class EsfSerialPort
extends java.lang.Object

container class for ESFSerial ports. This class contains knowledge about USB device node mappings if applicable as well as the device node mappings. Copyright (c) 2011 Eurotech Inc. All rights reserved.


Constructor Summary
EsfSerialPort(java.lang.String deviceNode)
          Contsructor for a serial device that is not a USB based serial port
EsfSerialPort(java.lang.String deviceNode, java.lang.String usbPort)
          Constructor for a serial device that is a USB based serial port
 
Method Summary
 java.lang.String getDeviceNode()
          returns the device node as a @String
 java.lang.String getUsbPort()
          returns the USB port name as a @String if this is a USB based serial port.
 boolean isUsbToSerialPort()
          returns whether or not this is a USB based serial port
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsfSerialPort

public EsfSerialPort(java.lang.String deviceNode)
Contsructor for a serial device that is not a USB based serial port

Parameters:
deviceNode - the device node of the serial port

EsfSerialPort

public EsfSerialPort(java.lang.String deviceNode,
                     java.lang.String usbPort)
Constructor for a serial device that is a USB based serial port

Parameters:
deviceNode - the device node of the serial port
usbPort - the usb port name of the device
Method Detail

getDeviceNode

public java.lang.String getDeviceNode()
returns the device node as a @String

Returns:
the device node name

isUsbToSerialPort

public boolean isUsbToSerialPort()
returns whether or not this is a USB based serial port

Returns:
true if USB based serial port, otherwise false

getUsbPort

public java.lang.String getUsbPort()
returns the USB port name as a @String if this is a USB based serial port.

Returns:
the USB port name.