jmri.jmrix.srcp.networkdriver
Class NetworkDriverAdapter

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

public class NetworkDriverAdapter
extends SRCPPortController
implements NetworkPortAdapter

Implements SerialPortAdapter for the SRCP system network connection.

This connects an SRCP server (daemon) via a telnet connection. Normally controlled by the NetworkDriverFrame class.

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

Field Summary
 
Fields inherited from class jmri.jmrix.srcp.SRCPPortController
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 SRCP command station connected to this port
 void dispose()
           
static NetworkDriverAdapter instance()
           
 boolean status()
          Query the status of this connection.
 
Methods inherited from class jmri.jmrix.AbstractNetworkPortController
connect, connect, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, getSystemConnectionMemo, setDisabled, 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, getSystemConnectionMemo, setDisabled, setManufacturer
 

Constructor Detail

NetworkDriverAdapter

public NetworkDriverAdapter()
Method Detail

configure

public void configure()
set up all of the other objects to operate with an SRCP 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

instance

public static NetworkDriverAdapter instance()

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