|
||||||||||
| 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.ms100.MS100Adapter
public class MS100Adapter
Provide access to LocoNet via a MS100 attached to a serial comm port. Normally controlled by the MS100Frame class.
By default, this attempts to use 16600 baud. If that fails, it falls back to 16457 baud. Neither the baud rate configuration nor the "option 1" option are used.
| Field Summary |
|---|
| 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 | |
|---|---|
MS100Adapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a MS100 connected to this port |
void |
configureOption2(String value)
Set the second port option. |
DataInputStream |
getInputStream()
|
DataOutputStream |
getOutputStream()
|
Vector<String> |
getPortNames()
Provide a vector of valid port names, each a String. |
static MS100Adapter |
instance()
|
String |
openPort(String portName,
String appName)
Open a specified port. |
String |
option1Name()
Option 1 not used, so return a null string. |
String |
option2Name()
Get a String that says what Option 2 represents May be an empty string, but will not be null |
boolean |
status()
Check that this object is ready to operate. |
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 |
String[] |
validOption2()
Get an array of valid values for "option 2"; used to display valid options. |
| Methods inherited from class jmri.jmrix.loconet.LnPortController |
|---|
configureCommandStation, configureManagers, okToSend, setCommandStationType |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureBaudRate, configureOption1, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, 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, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, handlePortBusy, setPort |
| Constructor Detail |
|---|
public MS100Adapter()
| Method Detail |
|---|
public Vector<String> getPortNames()
SerialPortAdapter
getPortNames in interface SerialPortAdaptergetPortNames in class AbstractPortController
public String openPort(String portName,
String appName)
SerialPortAdapter
openPort in interface SerialPortAdapterpublic void configure()
configure in interface PortAdapterconfigure in interface SerialPortAdapterpublic DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class LnPortControllerpublic DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class LnPortControllerpublic boolean status()
LnPortController
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class LnPortControllerpublic String[] validBaudRates()
validBaudRates in interface SerialPortAdapterpublic String[] validOption1()
validOption1 in interface PortAdaptervalidOption1 in interface SerialPortAdaptervalidOption1 in class AbstractPortControllerpublic String option1Name()
option1Name in interface PortAdapteroption1Name in interface SerialPortAdapteroption1Name in class AbstractPortControllerpublic String[] validOption2()
validOption2 in interface PortAdaptervalidOption2 in interface SerialPortAdaptervalidOption2 in class AbstractPortControllerpublic String option2Name()
option2Name in interface PortAdapteroption2Name in interface SerialPortAdapteroption2Name in class AbstractPortControllerpublic void configureOption2(String value)
configureOption2 in interface PortAdapterconfigureOption2 in interface SerialPortAdapterconfigureOption2 in class AbstractPortControllerpublic static MS100Adapter instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||