jmri.jmrix.nce.networkdriver
Class NetworkDriverAdapter
java.lang.Object
jmri.jmrix.AbstractPortController
jmri.jmrix.AbstractNetworkPortController
jmri.jmrix.nce.NceNetworkPortController
jmri.jmrix.nce.networkdriver.NetworkDriverAdapter
- All Implemented Interfaces:
- NetworkPortAdapter, PortAdapter
public class NetworkDriverAdapter
- extends NceNetworkPortController
Implements SerialPortAdapter for the NCE system network connection.
This connects
an NCE command station via a telnet connection.
Normally controlled by the NetworkDriverFrame class.
- Author:
- Bob Jacobsen Copyright (C) 2001, 2002, 2003
| Methods inherited from class jmri.jmrix.AbstractNetworkPortController |
connect, connect, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, setHostName, setPort, setPort, status |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkDriverAdapter
public NetworkDriverAdapter()
getSystemConnectionMemo
public NceSystemConnectionMemo getSystemConnectionMemo()
- Specified by:
getSystemConnectionMemo in interface PortAdapter- Overrides:
getSystemConnectionMemo in class NceNetworkPortController
configure
public void configure()
- set up all of the other objects to operate with an NCE command
station connected to this port
validOption2
public String[] validOption2()
- Option 2 is binary vs ASCII command set.
- Specified by:
validOption2 in interface NetworkPortAdapter- Specified by:
validOption2 in interface PortAdapter- Overrides:
validOption2 in class AbstractPortController
option2Name
public String option2Name()
- Get a String that says what Option 2 represents
May be an empty string, but will not be null
- Specified by:
option2Name in interface NetworkPortAdapter- Specified by:
option2Name in interface PortAdapter- Overrides:
option2Name in class AbstractPortController
configureOption2
public void configureOption2(String value)
- Set the binary vs ASCII command set option.
- Specified by:
configureOption2 in interface NetworkPortAdapter- Specified by:
configureOption2 in interface PortAdapter- Overrides:
configureOption2 in class AbstractPortController
getCurrentOption2Setting
public String getCurrentOption2Setting()
- Description copied from interface:
PortAdapter
- Get current option 2 value
- Specified by:
getCurrentOption2Setting in interface NetworkPortAdapter- Specified by:
getCurrentOption2Setting in interface PortAdapter- Overrides:
getCurrentOption2Setting in class AbstractPortController
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: