jmri.jmrix.ecos.networkdriver
Class NetworkDriverAdapter

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

public class NetworkDriverAdapter
extends EcosPortController
implements NetworkPortAdapter

Implements SerialPortAdapter for the ECOS system network connection.

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

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

Field Summary
 
Fields inherited from class jmri.jmrix.ecos.EcosPortController
adaptermemo
 
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
NetworkDriverAdapter()
           
 
Method Summary
protected  void closeConnection()
           
 void configure()
          set up all of the other objects to operate with an ECOS command station connected to this port
 void dispose()
           
 EcosSystemConnectionMemo getSystemConnectionMemo()
           
protected  void resetupConnection()
           
 boolean status()
          Query the status of this connection.
 
Methods inherited from class jmri.jmrix.ecos.EcosPortController
setDisabled
 
Methods inherited from class jmri.jmrix.AbstractNetworkPortController
connect, connect, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, 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
getDisabled, getInputStream, getManufacturer, getOutputStream, setDisabled, setManufacturer
 

Constructor Detail

NetworkDriverAdapter

public NetworkDriverAdapter()
Method Detail

getSystemConnectionMemo

public EcosSystemConnectionMemo getSystemConnectionMemo()
Specified by:
getSystemConnectionMemo in interface PortAdapter
Overrides:
getSystemConnectionMemo in class AbstractNetworkPortController

configure

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

Specified by:
configure in interface NetworkPortAdapter
Specified by:
configure in interface PortAdapter

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

dispose

public void dispose()
Specified by:
dispose in interface PortAdapter
Overrides:
dispose in class AbstractNetworkPortController

closeConnection

protected void closeConnection()

resetupConnection

protected void resetupConnection()


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