|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.AbstractPortController
jmri.jmrix.AbstractNetworkPortController
jmri.jmrix.lenz.XNetNetworkPortController
jmri.jmrix.lenz.liusbserver.LIUSBServerAdapter
public class LIUSBServerAdapter
Provide access to XPressNet via a the Lenz LIUSB Server. NOTES: The LIUSB server binds only to localhost (127.0.0.1) on TCP ports 5550 and 5551. Port 5550 is used for general communication. Port 5551 is used for broadcast messages only. The LIUSB Server disconnects both ports if there is 60 seconds of inactivity on the port. The LIUSB Server disconnects port 5550 if another device puts the system into service mode.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrix.lenz.XNetNetworkPortController |
|---|
adaptermemo, checkBuffer, validOption2 |
| Fields inherited from class jmri.jmrix.AbstractNetworkPortController |
|---|
m_HostName, m_port, socketConn |
| Fields inherited from class jmri.jmrix.AbstractPortController |
|---|
mDisabled, mManufacturer, mOpt1, mOpt2, opened |
| Constructor Summary | |
|---|---|
LIUSBServerAdapter()
|
|
| Method Summary | |
|---|---|
void |
configure()
set up all of the other objects to operate with a LIUSB Server interface |
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()
|
static LIUSBServerAdapter |
instance()
Deprecated. |
boolean |
okToSend()
Can the port accept additional characters? |
String |
openPort(String portName,
String appName)
|
String |
option1Name()
Get a String that says what Option 1 represents May be an empty string, but will not be null |
void |
setManufacturer(String manu)
Set the System Manufacturers Name |
boolean |
status()
Check that this object is ready to operate. |
String[] |
validOption1()
Get an array of valid values for "option 1"; used to display valid options. |
| Methods inherited from class jmri.jmrix.lenz.XNetNetworkPortController |
|---|
dispose, getCurrentOption2Setting, getSystemConnectionMemo, setOutputBufferEmpty |
| Methods inherited from class jmri.jmrix.AbstractNetworkPortController |
|---|
connect, connect, getCurrentPortName, getHostName, getPort, setDisabled, setHostName, setPort, setPort |
| Methods inherited from class jmri.jmrix.AbstractPortController |
|---|
configureOption1, configureOption2, getCurrentOption1Setting, getDisabled, option2Name, validOption2 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.jmrix.PortAdapter |
|---|
configureOption1, configureOption2, getCurrentOption1Setting, getCurrentPortName, getDisabled, option2Name, setDisabled, validOption2 |
| Methods inherited from interface jmri.jmrix.NetworkPortAdapter |
|---|
configureOption1, configureOption2, getCurrentOption1Setting, option2Name, validOption2 |
| Constructor Detail |
|---|
public LIUSBServerAdapter()
| Method Detail |
|---|
public String openPort(String portName,
String appName)
public boolean okToSend()
okToSend in interface XNetPortControllerokToSend in class XNetNetworkPortControllerpublic DataInputStream getInputStream()
getInputStream in interface PortAdaptergetInputStream in class XNetNetworkPortControllerpublic DataOutputStream getOutputStream()
getOutputStream in interface PortAdaptergetOutputStream in class XNetNetworkPortControllerpublic boolean status()
XNetNetworkPortController
status in interface XNetPortControllerstatus in interface NetworkPortAdapterstatus in interface PortAdapterstatus in class XNetNetworkPortControllerpublic String[] validOption1()
validOption1 in interface NetworkPortAdaptervalidOption1 in interface PortAdaptervalidOption1 in class AbstractPortControllerpublic String option1Name()
option1Name in interface NetworkPortAdapteroption1Name in interface PortAdapteroption1Name in class AbstractPortControllerpublic void configure()
@Deprecated public static LIUSBServerAdapter instance()
public String getManufacturer()
AbstractPortController
getManufacturer in interface PortAdaptergetManufacturer in class AbstractPortControllerpublic void setManufacturer(String manu)
PortAdapter
setManufacturer in interface PortAdaptersetManufacturer in class AbstractPortController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||