|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SerialPortAdapter
Enables basic setup of a serial interface for a jmrix implementation.
SerialConfigException| Method Summary | |
|---|---|
void |
configure()
Configure all of the other jmrix widgets needed to work with this adapter |
void |
configureBaudRate(String rate)
Set the baud rate. |
void |
configureOption1(String value)
Set the first port option. |
void |
configureOption2(String value)
Set the second port option. |
String |
getCurrentBaudRate()
|
String |
getCurrentOption1Setting()
|
String |
getCurrentOption2Setting()
Get current option 2 value |
String |
getCurrentPortName()
|
Vector |
getPortNames()
Provide a vector of valid port names, each a String. |
String |
handlePortBusy(javax.comm.PortInUseException p,
String portName,
org.apache.log4j.Category log)
Error handling for busy port at open. |
String |
openPort(String portName,
String appName)
Open a specified port. |
String |
option1Name()
Get a String that says what Option 1 represents May be an empty string, but will not be null |
String |
option2Name()
Get a String that says what Option 2 represents May be an empty string, but will not be null |
void |
setPort(String s)
Remember the associated port name |
boolean |
status()
Query the status of this connection. |
String[] |
validBaudRates()
Get an array of valid baud rates; used to display valid options. |
String[] |
validOption1()
Get an array of valid values for "option 1"; used to display valid options. |
String[] |
validOption2()
Get an array of valid values for "option 2"; used to display valid options. |
| Method Detail |
|---|
Vector getPortNames()
String openPort(String portName,
String appName)
void configure()
configure in interface PortAdapterboolean status()
status in interface PortAdaptervoid setPort(String s)
s - String getCurrentPortName()
String[] validBaudRates()
void configureBaudRate(String rate)
String getCurrentBaudRate()
String[] validOption1()
String option1Name()
void configureOption1(String value)
String getCurrentOption1Setting()
String[] validOption2()
String option2Name()
void configureOption2(String value)
String getCurrentOption2Setting()
String handlePortBusy(javax.comm.PortInUseException p,
String portName,
org.apache.log4j.Category log)
AbstractPortController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||