jmri.jmrix.loconet.Intellibox
Class IntelliboxAdapter

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.Intellibox.IntelliboxAdapter
All Implemented Interfaces:
PortAdapter, SerialPortAdapter

public class IntelliboxAdapter
extends LocoBufferAdapter

Update the code in jmri.jmrix.loconet.locobuffer so that it operates correctly with the Intellibox on-board serial port.

Since this is by definition connected to an Intellibox, the command station prompt is suppressed.

Author:
Alex Shepherd Copyright (C) 2004, Bob Jacobsen Copyright (C) 2005

Field Summary
 
Fields inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
validOption1, validSpeeds, 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
IntelliboxAdapter()
           
 
Method Summary
 void configure()
          Set up all of the other objects to operate with a LocoBuffer connected to this port.
static LocoBufferAdapter instance()
           
 String option1Name()
          Rephrase option 1, so that it doesn't talk about LocoBuffer
 int[] validBaudNumber()
          Get an array of valid baud rates as integers.
 String[] validBaudRates()
          Get an array of valid baud rates.
 String[] validOption2()
          Option 2, usually used for command station type, is suppressed by providing just one option.
 
Methods inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
configureOption2, getInputStream, getOutputStream, getPortNames, hasInstance, okToSend, openPort, option2Name, setSerialPort, status, validOption1
 
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
 

Constructor Detail

IntelliboxAdapter

public IntelliboxAdapter()
Method Detail

configure

public void configure()
Set up all of the other objects to operate with a LocoBuffer connected to this port.

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

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.

Overrides:
validBaudNumber in class LocoBufferAdapter

option1Name

public String option1Name()
Rephrase option 1, so that it doesn't talk about LocoBuffer

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

validOption2

public String[] validOption2()
Option 2, usually used for command station type, is suppressed by providing just one option.

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

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