|
||||||||||
| 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. |
void |
configureOption3(String value)
Set the second port option. |
void |
configureOption4(String value)
Set the second port option. |
String |
getCurrentBaudRate()
|
String |
getCurrentPortName()
|
String |
getManufacturer()
Return the System Manufacturers Name |
Vector<String> |
getPortNames()
Provide a vector of valid port names, each a String. |
String |
handlePortBusy(PortInUseException p,
String portName,
org.slf4j.Logger log)
Error handling for busy port at open. |
String |
openPort(String portName,
String appName)
Open a specified port. |
void |
setManufacturer(String Manufacturer)
Set the System Manufacturers Name |
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. |
| Methods inherited from interface jmri.jmrix.PortAdapter |
|---|
connect, dispose, getDisabled, getInputStream, getOption1Name, getOption2Name, getOption3Name, getOption4Name, getOptionChoices, getOptionDisplayName, getOptions, getOptionState, getOutputStream, getSystemConnectionMemo, isOptionAdvanced, recover, setDisabled, setOptionState |
| Method Detail |
|---|
Vector<String> getPortNames()
String openPort(String portName,
String appName)
void configure()
configure in interface PortAdapterboolean status()
status in interface PortAdaptervoid setPort(String s)
s - String getCurrentPortName()
getCurrentPortName in interface PortAdapterString[] validBaudRates()
void configureBaudRate(String rate)
String getCurrentBaudRate()
void configureOption1(String value)
configureOption1 in interface PortAdaptervoid configureOption2(String value)
configureOption2 in interface PortAdaptervoid configureOption3(String value)
configureOption3 in interface PortAdaptervoid configureOption4(String value)
configureOption4 in interface PortAdapter
String handlePortBusy(PortInUseException p,
String portName,
org.slf4j.Logger log)
AbstractSerialPortControllerString getManufacturer()
getManufacturer in interface PortAdaptervoid setManufacturer(String Manufacturer)
setManufacturer in interface PortAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||