|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.zimo.Mx1PortController
jmri.jmrix.zimo.mx1.Mx1Adapter
public class Mx1Adapter
| Field Summary | |
|---|---|
protected String |
selectedOption1
|
protected String[] |
validOption1
|
protected String[] |
validSpeeds
|
protected int[] |
validSpeedValues
|
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
mBaudRate, mOpt1, mOpt2, mPort |
| Constructor Summary | |
|---|---|
Mx1Adapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a MX-1 connected to this port |
DataInputStream |
getInputStream()
|
DataOutputStream |
getOutputStream()
|
static Mx1Adapter |
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 |
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.AbstractPortController |
|---|
configureBaudRate, configureOption1, configureOption2, currentBaudNumber, getCurrentBaudRate, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getPortNames, handlePortBusy, handlePortNotFound, option2Name, reloadDriver, setPort, validBaudNumber, validOption2 |
| 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
protected String selectedOption1
| Constructor Detail |
|---|
public Mx1Adapter()
| Method Detail |
|---|
public String openPort(String portName,
String appName)
SerialPortAdapter
openPort in interface SerialPortAdapterpublic boolean okToSend()
okToSend in class Mx1PortControllerpublic void configure()
configure in interface PortAdapterconfigure in interface SerialPortAdapterpublic DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class Mx1PortControllerpublic DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class Mx1PortControllerpublic boolean status()
Mx1PortController
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class Mx1PortController
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 Mx1Adapter instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||