|
||||||||||
| 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. |
void |
dispose()
|
String |
getCurrentOption1Setting()
|
String |
getCurrentOption2Setting()
Get current option 2 value |
String |
getCurrentPortName()
|
boolean |
getDisabled()
Return the disabled state of the adapter |
DataInputStream |
getInputStream()
|
String |
getManufacturer()
Return the System Manufacturers Name |
DataOutputStream |
getOutputStream()
|
SystemConnectionMemo |
getSystemConnectionMemo()
|
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 |
setDisabled(boolean disabled)
Sets whether the connection is disabled |
void |
setManufacturer(String Manufacturer)
Set the System Manufacturers Name |
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()
String getCurrentPortName()
DataInputStream getInputStream()
DataOutputStream getOutputStream()
String[] validOption1()
String option1Name()
void configureOption1(String value)
String getCurrentOption1Setting()
String[] validOption2()
String option2Name()
void configureOption2(String value)
String getCurrentOption2Setting()
String getManufacturer()
void setManufacturer(String Manufacturer)
boolean getDisabled()
void setDisabled(boolean disabled)
SystemConnectionMemo getSystemConnectionMemo()
void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||