jmri.jmrix.jmriclient.networkdriver
Class NetworkDriverAdapter

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

public class NetworkDriverAdapter
extends JMRIClientPortController

Implements NetworkPortAdapter for the jmriclient system network connection.

This connects a JMRI server (daemon) via a telnet connection.

Author:
Paul Bender Copyright (C) 2010

Field Summary
 
Fields inherited from class jmri.jmrix.jmriclient.JMRIClientPortController
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 JMRI server connected to this port
 void dispose()
           
 SystemConnectionMemo getSystemConnectionMemo()
           
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, 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, getCurrentOption1Setting, getCurrentOption2Setting, option1Name, option2Name, validOption1, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled, getManufacturer, setManufacturer
 

Constructor Detail

NetworkDriverAdapter

public NetworkDriverAdapter()
Method Detail

configure

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

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

instance

public static NetworkDriverAdapter instance()


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