jmri.jmrix.loconet.loconetovertcp
Class LnTcpDriverAdapter
java.lang.Object
jmri.jmrix.AbstractPortController
jmri.jmrix.AbstractNetworkPortController
jmri.jmrix.loconet.LnNetworkPortController
jmri.jmrix.loconet.loconetovertcp.LnTcpDriverAdapter
- All Implemented Interfaces:
- NetworkPortAdapter, PortAdapter
public class LnTcpDriverAdapter
- extends LnNetworkPortController
Implements SerialPortAdapter for the LocoNetOverTcp system network connection.
This connects
a Loconet via a telnet connection.
Normally controlled by the LnTcpDriverFrame class.
- Author:
- Bob Jacobsen Copyright (C) 2001, 2002, 2003, Alex Shepherd Copyright (C) 2003, 2006
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LnTcpDriverAdapter
public LnTcpDriverAdapter()
configure
public void configure()
- set up all of the other objects to operate with a LocoNet
connected via this class.
status
public boolean status()
- Description copied from class:
AbstractNetworkPortController
- Query the status of this connection. If all OK, at least
as far as is known, return true
- Specified by:
status in interface NetworkPortAdapter- Specified by:
status in interface PortAdapter- Overrides:
status in class AbstractNetworkPortController
validOption1
public String[] validOption1()
- Get an array of valid values for "option 2"; used to display valid options.
May not be null, but may have zero entries
- Specified by:
validOption1 in interface NetworkPortAdapter- Specified by:
validOption1 in interface PortAdapter- Overrides:
validOption1 in class AbstractPortController
option1Name
public String option1Name()
- Get a String that says what Option 2 represents
May be an empty string, but will not be null
- Specified by:
option1Name in interface NetworkPortAdapter- Specified by:
option1Name in interface PortAdapter- Overrides:
option1Name in class AbstractPortController
configureOption1
public void configureOption1(String value)
- Description copied from class:
AbstractPortController
- Set the second port option.
- Specified by:
configureOption1 in interface NetworkPortAdapter- Specified by:
configureOption1 in interface PortAdapter- Overrides:
configureOption1 in class AbstractPortController
getCommandStationNames
public String[] getCommandStationNames()
getCurrentCommandStation
public String getCurrentCommandStation()
getSystemConnectionMemo
public SystemConnectionMemo getSystemConnectionMemo()
- Specified by:
getSystemConnectionMemo in interface PortAdapter- Overrides:
getSystemConnectionMemo in class AbstractNetworkPortController
dispose
public void dispose()
- Specified by:
dispose in interface PortAdapter- Overrides:
dispose in class AbstractNetworkPortController
Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.
Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: