jmri.jmrix
Class AbstractNetworkPortAdapter

java.lang.Object
  extended by jmri.jmrix.AbstractPortController
      extended by jmri.jmrix.AbstractSerialPortController
          extended by jmri.jmrix.AbstractNetworkPortAdapter
All Implemented Interfaces:
PortAdapter, SerialPortAdapter

Deprecated.

@Deprecated
public abstract class AbstractNetworkPortAdapter
extends AbstractSerialPortController

Enables basic setup of a network client interface for a jmrix implementation.

Author:
Paul Bender Copyright (C) 2009
See Also:
NetworkConfigException

Field Summary
protected  String m_HostName
          Deprecated.  
protected  int m_port
          Deprecated.  
protected  Socket socketConn
          Deprecated.  
 
Fields inherited from class jmri.jmrix.AbstractSerialPortController
mBaudRate, mPort
 
Fields inherited from class jmri.jmrix.AbstractPortController
mDisabled, mManufacturer, mOpt1, mOpt2, opened
 
Constructor Summary
AbstractNetworkPortAdapter()
          Deprecated.  
 
Method Summary
 void dispose()
          Deprecated.  
 String getHostName()
          Deprecated.  
 DataInputStream getInputStream()
          Deprecated.  
 DataOutputStream getOutputStream()
          Deprecated.  
 int getPort()
          Deprecated.  
 SystemConnectionMemo getSystemConnectionMemo()
          Deprecated.  
 String openPort(String ipAddress, int port, String appName)
          Deprecated. Open an IP port.
 String openPort(String portName, String appName)
          Deprecated. Open a specified port.
 void setHostName(String s)
          Deprecated. Remember the associated host name
 void setPort(int p)
          Deprecated. Remeber the associated port number
 boolean status()
          Deprecated. Query the status of this connection.
 String[] validBaudRates()
          Deprecated. Get an array of valid baud rates.
 
Methods inherited from class jmri.jmrix.AbstractSerialPortController
configureBaudRate, currentBaudNumber, getCurrentBaudRate, getCurrentPortName, getPortNames, handlePortBusy, handlePortNotFound, setDisabled, setPort, validBaudNumber
 
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.SerialPortAdapter
configure, configureOption1, configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, getManufacturer, option1Name, option2Name, setManufacturer, validOption1, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled
 

Field Detail

m_HostName

protected String m_HostName
Deprecated. 

m_port

protected int m_port
Deprecated. 

socketConn

protected Socket socketConn
Deprecated. 
Constructor Detail

AbstractNetworkPortAdapter

public AbstractNetworkPortAdapter()
Deprecated. 
Method Detail

openPort

public String openPort(String portName,
                       String appName)
Deprecated. 
Open a specified port. The appname argument is to be provided to the underlying OS during startup so that it can show on status displays, etc


openPort

public String openPort(String ipAddress,
                       int port,
                       String appName)
Deprecated. 
Open an IP port. The appname argument is to be provided to the underlying OS during startup so that it can show on status displays, etc


status

public boolean status()
Deprecated. 
Query the status of this connection. If all OK, at least as far as is known, return true

Specified by:
status in interface PortAdapter
Specified by:
status in interface SerialPortAdapter
Overrides:
status in class AbstractPortController

setHostName

public void setHostName(String s)
Deprecated. 
Remember the associated host name

Parameters:
s -

getHostName

public String getHostName()
Deprecated. 

setPort

public void setPort(int p)
Deprecated. 
Remeber the associated port number

Parameters:
p -

getPort

public int getPort()
Deprecated. 

getInputStream

public DataInputStream getInputStream()
Deprecated. 
Specified by:
getInputStream in interface PortAdapter
Specified by:
getInputStream in class AbstractPortController

getOutputStream

public DataOutputStream getOutputStream()
Deprecated. 
Specified by:
getOutputStream in interface PortAdapter
Specified by:
getOutputStream in class AbstractPortController

validBaudRates

public String[] validBaudRates()
Deprecated. 
Get an array of valid baud rates. This is currently just a message saying its fixed


getSystemConnectionMemo

public SystemConnectionMemo getSystemConnectionMemo()
Deprecated. 
Specified by:
getSystemConnectionMemo in interface PortAdapter
Overrides:
getSystemConnectionMemo in class AbstractSerialPortController

dispose

public void dispose()
Deprecated. 
Specified by:
dispose in interface PortAdapter
Overrides:
dispose in class AbstractSerialPortController


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