jmri.jmrix.loconet.locobufferusb
Class LocoBufferUsbAdapter

java.lang.Object
  extended by jmri.jmrix.AbstractPortController
      extended by jmri.jmrix.AbstractSerialPortController
          extended by jmri.jmrix.loconet.LnPortController
              extended by jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
                  extended by jmri.jmrix.loconet.locobufferusb.LocoBufferUsbAdapter
All Implemented Interfaces:
PortAdapter, SerialPortAdapter

public class LocoBufferUsbAdapter
extends LocoBufferAdapter

Update the code in jmri.jmrix.loconet.locobuffer so that it refers to the switch settings on the new LocoBuffer-USB

Author:
Bob Jacobsen Copyright (C) 2004, 2005

Field Summary
 
Fields inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
validOption1, validSpeeds, validSpeedValues
 
Fields inherited from class jmri.jmrix.loconet.LnPortController
adaptermemo, commandStationName, commandStationNames, mCanRead, mProgPowersOff
 
Fields inherited from class jmri.jmrix.AbstractSerialPortController
mBaudRate, mPort
 
Fields inherited from class jmri.jmrix.AbstractPortController
mDisabled, mManufacturer, mOpt1, mOpt2
 
Constructor Summary
LocoBufferUsbAdapter()
           
 
Method Summary
 String option1Name()
          Option 1 not used, so return a null string.
protected  void setSerialPort(SerialPort activeSerialPort)
          Always use flow control, not considered a user-setable option
 int[] validBaudNumber()
          Get an array of valid baud rates as integers.
 String[] validBaudRates()
          Get an array of valid baud rates.
 String[] validOption1()
          Since option 1 is not used for this, return an array with one empty element
 
Methods inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
configure, configureOption2, dispose, getInputStream, getOutputStream, getPortNames, getSystemConnectionMemo, okToSend, openPort, option2Name, status, validOption2
 
Methods inherited from class jmri.jmrix.loconet.LnPortController
setCommandStationType, setDisabled
 
Methods inherited from class jmri.jmrix.AbstractSerialPortController
configureBaudRate, currentBaudNumber, getCurrentBaudRate, getCurrentPortName, handlePortBusy, handlePortNotFound, setPort
 
Methods inherited from class jmri.jmrix.AbstractPortController
configureOption1, getCurrentOption1Setting, getCurrentOption2Setting, getDisabled, getManufacturer, setManufacturer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jmri.jmrix.SerialPortAdapter
configureBaudRate, configureOption1, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getManufacturer, handlePortBusy, setManufacturer, setPort
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled, setDisabled
 

Constructor Detail

LocoBufferUsbAdapter

public LocoBufferUsbAdapter()
Method Detail

setSerialPort

protected void setSerialPort(SerialPort activeSerialPort)
                      throws UnsupportedCommOperationException
Always use flow control, not considered a user-setable option

Overrides:
setSerialPort in class LocoBufferAdapter
Throws:
UnsupportedCommOperationException

validBaudRates

public String[] validBaudRates()
Get an array of valid baud rates.

Specified by:
validBaudRates in interface SerialPortAdapter
Overrides:
validBaudRates in class LocoBufferAdapter

validBaudNumber

public int[] validBaudNumber()
Get an array of valid baud rates as integers. This allows subclasses to change the arrays of speeds.

Overrides:
validBaudNumber in class LocoBufferAdapter

validOption1

public String[] validOption1()
Since option 1 is not used for this, return an array with one empty element

Specified by:
validOption1 in interface PortAdapter
Specified by:
validOption1 in interface SerialPortAdapter
Overrides:
validOption1 in class LocoBufferAdapter

option1Name

public String option1Name()
Option 1 not used, so return a null string.

Specified by:
option1Name in interface PortAdapter
Specified by:
option1Name in interface SerialPortAdapter
Overrides:
option1Name in class LocoBufferAdapter


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads