jmri.jmrix.easydcc.networkdriver
Class NetworkDriverAdapter

java.lang.Object
  extended by jmri.jmrix.AbstractPortController
      extended by jmri.jmrix.AbstractNetworkPortController
          extended by jmri.jmrix.easydcc.EasyDccNetworkPortController
              extended by jmri.jmrix.easydcc.networkdriver.NetworkDriverAdapter
All Implemented Interfaces:
NetworkPortAdapter, PortAdapter

public class NetworkDriverAdapter
extends EasyDccNetworkPortController

Implements SerialPortAdapter for the EasyDcc system network connection.

This connects an EasyDcc command station via a telnet connection. Normally controlled by the NetworkDriverFrame class.

Author:
Bob Jacobsen Copyright (C) 2001, 2002, 2003

Field Summary
 
Fields inherited from class jmri.jmrix.easydcc.EasyDccNetworkPortController
adaptermemo
 
Fields inherited from class jmri.jmrix.AbstractNetworkPortController
m_HostName, m_port, socketConn
 
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 EasyDcc command station connected to this port
 Vector<String> getPortNames()
           
static NetworkDriverAdapter instance()
           
 String openPort(String portName, String appName)
           
 boolean status()
          Query the status of this connection.
 String[] validBaudRates()
           
 
Methods inherited from class jmri.jmrix.easydcc.EasyDccNetworkPortController
setDisabled
 
Methods inherited from class jmri.jmrix.AbstractNetworkPortController
connect, connect, dispose, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, getSystemConnectionMemo, setHostName, setPort, setPort
 
Methods inherited from class jmri.jmrix.AbstractPortController
configureOption1, configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, getDisabled, getManufacturer, option1Name, option2Name, setManufacturer, validOption1, 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.NetworkPortAdapter
configureOption1, configureOption2, connect, connect, getCurrentOption1Setting, getCurrentOption2Setting, getCurrentPortName, getHostName, getPort, option1Name, option2Name, setHostName, setPort, setPort, validOption1, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
dispose, getDisabled, getInputStream, getManufacturer, getOutputStream, getSystemConnectionMemo, setManufacturer
 

Constructor Detail

NetworkDriverAdapter

public NetworkDriverAdapter()
Method Detail

configure

public void configure()
set up all of the other objects to operate with an EasyDcc command station connected to this port


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

instance

public static NetworkDriverAdapter instance()

getPortNames

public Vector<String> getPortNames()

openPort

public String openPort(String portName,
                       String appName)

validBaudRates

public String[] validBaudRates()


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: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads