|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
public abstract class AbstractPortController
Provide an abstract base for *PortController classes.
This is complicated by the lack of multiple inheritance. SerialPortAdapter is an Interface, and its implementing classes also inherit from various PortController types. But we want some common behaviours for those, so we put them here.
SerialPortAdapter| Constructor Summary | |
|---|---|
AbstractPortController()
|
|
| Method Summary | |
|---|---|
void |
configureOption1(String value)
Set the second port option. |
void |
configureOption2(String value)
Set the second port option. |
String |
getCurrentOption1Setting()
|
String |
getCurrentOption2Setting()
Get current option 2 value |
abstract String |
getCurrentPortName()
|
abstract DataInputStream |
getInputStream()
|
String |
getManufacturer()
Get and set of the Manufacturer for network (TCP/IP) based connections is handled by the ConnectionConfig code in each connector. |
abstract DataOutputStream |
getOutputStream()
|
abstract 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 |
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrix.PortAdapter |
|---|
configure, dispose |
| Constructor Detail |
|---|
public AbstractPortController()
| Method Detail |
|---|
public abstract DataInputStream getInputStream()
getInputStream in interface PortAdapterpublic abstract DataOutputStream getOutputStream()
getOutputStream in interface PortAdapterpublic boolean status()
PortAdapter
status in interface PortAdapterpublic abstract String getCurrentPortName()
getCurrentPortName in interface PortAdapterpublic String[] validOption1()
validOption1 in interface PortAdapterpublic String option1Name()
option1Name in interface PortAdapterpublic void configureOption1(String value)
configureOption1 in interface PortAdapterpublic String getCurrentOption1Setting()
getCurrentOption1Setting in interface PortAdapterpublic String[] validOption2()
validOption2 in interface PortAdapterpublic String option2Name()
option2Name in interface PortAdapterpublic void configureOption2(String value)
configureOption2 in interface PortAdapterpublic String getCurrentOption2Setting()
PortAdapter
getCurrentOption2Setting in interface PortAdapterpublic String getManufacturer()
getManufacturer in interface PortAdapterpublic void setManufacturer(String Manufacturer)
PortAdapter
setManufacturer in interface PortAdapterpublic abstract SystemConnectionMemo getSystemConnectionMemo()
getSystemConnectionMemo in interface PortAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||