|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PortAdapter
Enables basic setup of a interface for a jmrix implementation.
This has no e.g. serial-specific information.
SerialConfigException| Method Summary | |
|---|---|
void |
configure()
Configure all of the other jmrix widgets needed to work with this adapter |
void |
configureOption1(String value)
* Set the first port option. |
void |
configureOption2(String value)
* Set the second port option. |
String |
getCurrentOption1Setting()
|
String |
getCurrentOption2Setting()
* Get current option 2 value |
DataInputStream |
getInputStream()
|
DataOutputStream |
getOutputStream()
|
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 |
boolean |
status()
Query the status of this connection. |
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 |
|---|
void configure()
boolean status()
DataInputStream getInputStream()
DataOutputStream getOutputStream()
String[] validOption1()
String option1Name()
void configureOption1(String value)
String getCurrentOption1Setting()
String[] validOption2()
String option2Name()
void configureOption2(String value)
String getCurrentOption2Setting()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||