|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.loconet.LnPortController
jmri.jmrix.loconet.locobuffer.LocoBufferAdapter
jmri.jmrix.loconet.pr2.PR2Adapter
public class PR2Adapter
Update the code in jmri.jmrix.loconet.locobuffer so that it refers to the switch settings on the new Digitrax PR2
| Field Summary | |
|---|---|
protected String[] |
validOption1
|
protected String[] |
validSpeeds
|
protected int[] |
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 | |
|---|---|
PR2Adapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
Set up all of the other objects to operate with a PR2 connected to this port. |
static void |
configureManagers()
Configure the subset of LocoNet managers valid for the PR2. |
static boolean |
hasInstance()
|
static LocoBufferAdapter |
instance()
|
String |
option1Name()
Option 1 controls flow control option |
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()
Get an array of valid values for "option 1"; used to display valid options. |
String[] |
validOption2()
The PR2 is itself a command station, so fix that choice by providing just the one option |
| Methods inherited from class jmri.jmrix.loconet.locobuffer.LocoBufferAdapter |
|---|
configureOption2, getInputStream, getOutputStream, getPortNames, okToSend, openPort, option2Name, status |
| 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 |
|---|
protected String[] validSpeeds
protected int[] validSpeedValues
protected String[] validOption1
| Constructor Detail |
|---|
public PR2Adapter()
| Method Detail |
|---|
protected void setSerialPort(SerialPort activeSerialPort)
throws UnsupportedCommOperationException
setSerialPort in class LocoBufferAdapterUnsupportedCommOperationExceptionpublic void configure()
configure in interface PortAdapterconfigure in interface SerialPortAdapterconfigure in class LocoBufferAdapterpublic static void configureManagers()
public String[] validBaudRates()
validBaudRates in interface SerialPortAdaptervalidBaudRates in class LocoBufferAdapterpublic int[] validBaudNumber()
validBaudNumber in class LocoBufferAdapterpublic String option1Name()
option1Name in interface PortAdapteroption1Name in interface SerialPortAdapteroption1Name in class LocoBufferAdapterpublic String[] validOption1()
AbstractPortController
validOption1 in interface PortAdaptervalidOption1 in interface SerialPortAdaptervalidOption1 in class LocoBufferAdapterpublic String[] validOption2()
validOption2 in interface PortAdaptervalidOption2 in interface SerialPortAdaptervalidOption2 in class LocoBufferAdapterpublic static boolean hasInstance()
public static LocoBufferAdapter instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||