com.esri.core.gps
Class SerialPortInfo

java.lang.Object
  extended by com.esri.core.gps.SerialPortInfo

public class SerialPortInfo
extends Object

This structure holds serial-port information. Any change made to an instance of this will not be in effect until the associated SerialPortGPSWatcher is re-started.

Serial port information has the following attributes

  • portName
  • baudRate
  • parity
  • stopBits
  • dataBits
  • See Also:
    SerialPortInfo(String, BaudRate, Parity, StopBits, int)

    Constructor Summary
    SerialPortInfo(String portName, BaudRate baudRate, Parity parity, StopBits stopBits, int dataBits)
              Creates an instance of SerialPortInfo.
     
    Method Summary
     BaudRate getBaudRate()
               
     int getDataBits()
               
     Parity getParity()
               
     String getPortName()
               
     StopBits getStopBits()
               
     void setBaudRate(BaudRate baudRate)
              Sets baudRate
     void setDataBits(int dataBits)
              Sets dataBits
     void setParity(Parity parity)
              Sets parity
     void setPortName(String portName)
              Sets portName
     void setStopBits(StopBits stopBits)
              Sets stopBits
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    SerialPortInfo

    public SerialPortInfo(String portName,
                          BaudRate baudRate,
                          Parity parity,
                          StopBits stopBits,
                          int dataBits)
    Creates an instance of SerialPortInfo.

    Parameters:
    portName - portName
    baudRate - baudRate
    parity - parity
    stopBits - stopBits
    dataBits - dataBits. The range of values for this property is from 5 through 8.
    Method Detail

    getPortName

    public String getPortName()
    Returns:
    portName

    getBaudRate

    public BaudRate getBaudRate()
    Returns:
    baudRate

    getParity

    public Parity getParity()
    Returns:
    parity

    getDataBits

    public int getDataBits()
    Returns:
    dataBits

    getStopBits

    public StopBits getStopBits()
    Returns:
    stopBits

    setPortName

    public void setPortName(String portName)
    Sets portName


    setBaudRate

    public void setBaudRate(BaudRate baudRate)
    Sets baudRate


    setParity

    public void setParity(Parity parity)
    Sets parity


    setStopBits

    public void setStopBits(StopBits stopBits)
    Sets stopBits


    setDataBits

    public void setDataBits(int dataBits)
    Sets dataBits



    Copyright © 2012. All Rights Reserved.