|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.lenz.XNetPortController
jmri.jmrix.lenz.li101.LI101Adapter
public class LI101Adapter
Provide access to XPressNet via a LI101 on an attached serial comm port. Normally controlled by the lenz.li101.LI101Frame class.
| Field Summary | |
|---|---|
protected String[] |
validOption1
|
protected String[] |
validSpeeds
|
protected int[] |
validSpeedValues
|
| Fields inherited from class jmri.jmrix.lenz.XNetPortController |
|---|
validOption2 |
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
mBaudRate, mOpt1, mOpt2, mPort |
| Constructor Summary | |
|---|---|
LI101Adapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a LI101 connected to this port |
DataInputStream |
getInputStream()
|
DataOutputStream |
getOutputStream()
|
static LI101Adapter |
instance()
|
boolean |
okToSend()
Can the port accept additional characters? |
String |
openPort(String portName,
String appName)
Open a specified port. |
String |
option1Name()
Option 1 controls flow control option |
void |
setOutputBufferEmpty(boolean s)
we need a way to say if the output buffer is empty or full this should only be set to false by external processes |
protected void |
setSerialPort()
Local method to do specific configuration |
boolean |
status()
Check that this object is ready to operate. |
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. |
| Methods inherited from class jmri.jmrix.lenz.XNetPortController |
|---|
option2Name, validOption2 |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureBaudRate, configureOption1, configureOption2, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getPortNames, handlePortBusy, handlePortNotFound, reloadDriver, setPort, validBaudNumber |
| 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, configureOption2, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getPortNames, handlePortBusy, option2Name, setPort, validOption2 |
| Field Detail |
|---|
protected String[] validSpeeds
protected int[] validSpeedValues
protected String[] validOption1
| Constructor Detail |
|---|
public LI101Adapter()
| Method Detail |
|---|
public String openPort(String portName,
String appName)
SerialPortAdapter
openPort in interface SerialPortAdapterpublic void setOutputBufferEmpty(boolean s)
setOutputBufferEmpty in class XNetPortControllerpublic boolean okToSend()
okToSend in class XNetPortControllerpublic void configure()
configure in interface PortAdapterconfigure in interface SerialPortAdapterpublic DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class XNetPortControllerpublic DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class XNetPortControllerpublic boolean status()
XNetPortController
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class XNetPortController
protected void setSerialPort()
throws UnsupportedCommOperationException
UnsupportedCommOperationExceptionpublic String[] validBaudRates()
validBaudRates in interface SerialPortAdapterpublic String option1Name()
option1Name in interface PortAdapteroption1Name in interface SerialPortAdapteroption1Name in class AbstractPortControllerpublic String[] validOption1()
AbstractPortController
validOption1 in interface PortAdaptervalidOption1 in interface SerialPortAdaptervalidOption1 in class AbstractPortControllerpublic static LI101Adapter instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||