jmri.jmrix.loconet.locobufferii
Class LocoBufferIIAdapter

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

public class LocoBufferIIAdapter
extends LocoBufferAdapter

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

Author:
Bob Jacobsen Copyright (C) 2004

Field Summary
protected  String[] validSpeeds
           
 
Fields inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
validOption1, validSpeedValues
 
Fields inherited from class jmri.jmrix.loconet.LnPortController
commandStationName, commandStationNames, mCanRead, mProgPowersOff
 
Fields inherited from class jmri.jmrix.AbstractPortController
mBaudRate, mOpt1, mOpt2, mPort
 
Constructor Summary
LocoBufferIIAdapter()
           
 
Method Summary
static boolean hasInstance()
           
static LocoBufferAdapter instance()
           
 String option1Name()
          Option 1 controls flow control option
 String[] validBaudRates()
          Get an array of valid baud rates.
 
Methods inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
configure, configureOption2, getInputStream, getOutputStream, getPortNames, okToSend, openPort, option2Name, setSerialPort, status, validBaudNumber, validOption1, validOption2
 
Methods inherited from class jmri.jmrix.loconet.LnPortController
configureCommandStation, configureManagers, setCommandStationType
 
Methods inherited from class jmri.jmrix.AbstractPortController
configureBaudRate, configureOption1, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, handlePortBusy, handlePortNotFound, reloadDriver, setPort
 
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, handlePortBusy, setPort
 

Field Detail

validSpeeds

protected String[] validSpeeds
Constructor Detail

LocoBufferIIAdapter

public LocoBufferIIAdapter()
Method Detail

validBaudRates

public String[] validBaudRates()
Get an array of valid baud rates. This is modified to have different comments. Because the speeds are the same as the parent class (19200 and 57600), we don't override validBaudNumber().

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

option1Name

public String option1Name()
Description copied from class: LocoBufferAdapter
Option 1 controls flow control option

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

hasInstance

public static boolean hasInstance()

instance

public static LocoBufferAdapter instance()


Copyright © 1997 - 2009 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