|
||||||||||
| 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 |
configureOption3(String value)
Set the third port option. |
void |
configureOption4(String value)
Set the fourth port option. |
void |
connect()
Open the connection |
void |
dispose()
|
String |
getCurrentPortName()
|
boolean |
getDisabled()
Return the disabled state of the adapter |
DataInputStream |
getInputStream()
|
String |
getManufacturer()
Return the System Manufacturers Name |
String |
getOption1Name()
|
String |
getOption2Name()
|
String |
getOption3Name()
|
String |
getOption4Name()
|
String[] |
getOptionChoices(String option)
|
String |
getOptionDisplayName(String option)
|
String[] |
getOptions()
|
String |
getOptionState(String option)
|
DataOutputStream |
getOutputStream()
|
SystemConnectionMemo |
getSystemConnectionMemo()
|
boolean |
isOptionAdvanced(String option)
|
void |
recover()
|
void |
setDisabled(boolean disabled)
Sets whether the connection is disabled |
void |
setManufacturer(String Manufacturer)
Set the System Manufacturers Name |
void |
setOptionState(String option,
String value)
|
boolean |
status()
Query the status of this connection. |
| Method Detail |
|---|
void configure()
boolean status()
void connect()
throws Exception
ExceptionString getCurrentPortName()
DataInputStream getInputStream()
DataOutputStream getOutputStream()
String getOption1Name()
String getOption2Name()
String getOption3Name()
String getOption4Name()
void configureOption1(String value)
void configureOption2(String value)
void configureOption3(String value)
void configureOption4(String value)
String[] getOptions()
boolean isOptionAdvanced(String option)
String getOptionDisplayName(String option)
void setOptionState(String option,
String value)
String getOptionState(String option)
String[] getOptionChoices(String option)
String getManufacturer()
void setManufacturer(String Manufacturer)
boolean getDisabled()
void setDisabled(boolean disabled)
SystemConnectionMemo getSystemConnectionMemo()
void dispose()
void recover()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||