jmri.jmrix.loconet.loconetovertcp
Class LnTcpDriverAdapter

java.lang.Object
  extended by jmri.jmrix.AbstractPortController
      extended by jmri.jmrix.AbstractNetworkPortController
          extended by jmri.jmrix.loconet.LnNetworkPortController
              extended by jmri.jmrix.loconet.loconetovertcp.LnTcpDriverAdapter
All Implemented Interfaces:
NetworkPortAdapter, PortAdapter

public class LnTcpDriverAdapter
extends LnNetworkPortController

Implements SerialPortAdapter for the LocoNetOverTcp system network connection.

This connects a Loconet via a telnet connection. Normally controlled by the LnTcpDriverFrame class.

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

Field Summary
 
Fields inherited from class jmri.jmrix.loconet.LnNetworkPortController
adaptermemo, commandStationName, commandStationNames, mCanRead, mProgPowersOff
 
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
LnTcpDriverAdapter()
           
 
Method Summary
 void configure()
          set up all of the other objects to operate with a LocoNet connected via this class.
 void configureOption1(String value)
          Set the second port option.
 void dispose()
           
 String[] getCommandStationNames()
           
 String getCurrentCommandStation()
           
 SystemConnectionMemo getSystemConnectionMemo()
           
 String option1Name()
          Get a String that says what Option 2 represents May be an empty string, but will not be null
 boolean status()
          Query the status of this connection.
 String[] validOption1()
          Get an array of valid values for "option 2"; used to display valid options.
 
Methods inherited from class jmri.jmrix.loconet.LnNetworkPortController
setCommandStationType, 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
configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, getDisabled, getManufacturer, option2Name, setManufacturer, 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
configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, option2Name, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled, getManufacturer, setManufacturer
 

Constructor Detail

LnTcpDriverAdapter

public LnTcpDriverAdapter()
Method Detail

configure

public void configure()
set up all of the other objects to operate with a LocoNet connected via this class.


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

validOption1

public String[] validOption1()
Get an array of valid values for "option 2"; used to display valid options. May not be null, but may have zero entries

Specified by:
validOption1 in interface NetworkPortAdapter
Specified by:
validOption1 in interface PortAdapter
Overrides:
validOption1 in class AbstractPortController

option1Name

public String option1Name()
Get a String that says what Option 2 represents May be an empty string, but will not be null

Specified by:
option1Name in interface NetworkPortAdapter
Specified by:
option1Name in interface PortAdapter
Overrides:
option1Name in class AbstractPortController

configureOption1

public void configureOption1(String value)
Description copied from class: AbstractPortController
Set the second port option.

Specified by:
configureOption1 in interface NetworkPortAdapter
Specified by:
configureOption1 in interface PortAdapter
Overrides:
configureOption1 in class AbstractPortController

getCommandStationNames

public String[] getCommandStationNames()

getCurrentCommandStation

public String getCurrentCommandStation()

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


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