|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.AbstractSerialPortController
jmri.jmrix.can.adapters.gridconnect.net.NetworkDriverAdapter
public class NetworkDriverAdapter
Implements SerialPortAdapter for the OpenLCB system network connection.
This connects via a telnet connection. Normally controlled by the NetworkDriverFrame class.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.AbstractSerialPortController |
|---|
mBaudRate, mPort |
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
mDisabled, mManufacturer, mOpt1, mOpt2 |
| Constructor Summary | |
|---|---|
NetworkDriverAdapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with an NCE command station connected to this port |
void |
configureOption2(String value)
Set the binary vs ASCII command set option. |
void |
connect(String host,
int port)
|
String |
getCurrentOption2Setting()
Get current option 2 value |
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. |
DataOutputStream |
getOutputStream()
|
Vector<String> |
getPortNames()
Provide a vector of valid port names, each a String. |
static NetworkDriverAdapter |
instance()
|
String |
openPort(String portName,
String appName)
Open a specified port. |
String |
option2Name()
Get a String that says what Option 2 represents May be an empty string, but will not be null |
void |
setHostName(String hostName)
|
void |
setManufacturer(String manu)
Set the System Manufacturers Name |
boolean |
status()
Query the status of this connection. |
String[] |
validBaudRates()
Get an array of valid baud rates; used to display valid options. |
String[] |
validOption2()
Option 2 is various filters |
| Methods inherited from class jmri.jmrix.AbstractSerialPortController |
|---|
configureBaudRate, currentBaudNumber, dispose, getCurrentBaudRate, getCurrentPortName, getSystemConnectionMemo, handlePortBusy, handlePortNotFound, setDisabled, setPort, validBaudNumber |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureOption1, getCurrentOption1Setting, getDisabled, option1Name, validOption1 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrix.SerialPortAdapter |
|---|
configureOption1, getCurrentOption1Setting, option1Name, validOption1 |
| Methods inherited from interface jmri.jmrix.PortAdapter |
|---|
getDisabled |
| Constructor Detail |
|---|
public NetworkDriverAdapter()
| Method Detail |
|---|
public void configure()
public DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class AbstractPortController
public void connect(String host,
int port)
public DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class AbstractPortControllerpublic boolean status()
PortAdapter
status in interface PortAdapterstatus in interface SerialPortAdapterstatus in class AbstractPortControllerpublic String[] validOption2()
validOption2 in interface PortAdaptervalidOption2 in interface SerialPortAdaptervalidOption2 in class AbstractPortControllerpublic String option2Name()
option2Name in interface PortAdapteroption2Name in interface SerialPortAdapteroption2Name in class AbstractPortControllerpublic void configureOption2(String value)
configureOption2 in interface PortAdapterconfigureOption2 in interface SerialPortAdapterconfigureOption2 in class AbstractPortControllerpublic String getCurrentOption2Setting()
PortAdapter
getCurrentOption2Setting in interface PortAdaptergetCurrentOption2Setting in interface SerialPortAdaptergetCurrentOption2Setting in class AbstractPortControllerpublic static NetworkDriverAdapter instance()
public void setHostName(String hostName)
public Vector<String> getPortNames()
SerialPortAdapter
getPortNames in interface SerialPortAdaptergetPortNames in class AbstractSerialPortController
public String openPort(String portName,
String appName)
SerialPortAdapter
public String[] validBaudRates()
SerialPortAdapter
public String getManufacturer()
AbstractPortController
getManufacturer in interface PortAdaptergetManufacturer in interface SerialPortAdaptergetManufacturer in class AbstractPortControllerpublic void setManufacturer(String manu)
PortAdapter
setManufacturer in interface PortAdaptersetManufacturer in interface SerialPortAdaptersetManufacturer in class AbstractPortController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||