jmri.jmrix.nce.networkdriver
Class NetworkDriverAdapter

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

public class NetworkDriverAdapter
extends NceNetworkPortController

Implements SerialPortAdapter for the NCE system network connection.

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

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

Field Summary
 
Fields inherited from class jmri.jmrix.nce.NceNetworkPortController
adaptermemo
 
Fields inherited from class jmri.jmrix.AbstractNetworkPortController
m_HostName, m_port, socketConn
 
Fields inherited from class jmri.jmrix.AbstractPortController
mDisabled, mManufacturer, mOpt1, opened
 
Constructor Summary
NetworkDriverAdapter()
           
 
Method Summary
 void configure()
          set up all of the other objects to operate with an NCE command station connected to this port
 void configureOption2(String value)
          Set the binary vs ASCII command set option.
 void dispose()
           
 String getCurrentOption2Setting()
          Get current option 2 value
 NceSystemConnectionMemo getSystemConnectionMemo()
           
 String option2Name()
          Get a String that says what Option 2 represents May be an empty string, but will not be null
 String[] validOption2()
          Option 2 is binary vs ASCII command set.
 
Methods inherited from class jmri.jmrix.nce.NceNetworkPortController
setDisabled
 
Methods inherited from class jmri.jmrix.AbstractNetworkPortController
connect, connect, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, setHostName, setPort, setPort, status
 
Methods inherited from class jmri.jmrix.AbstractPortController
configureOption1, getCurrentOption1Setting, getDisabled, getManufacturer, option1Name, setManufacturer, validOption1
 
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, getCurrentOption1Setting, option1Name, validOption1
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled, getManufacturer, setManufacturer
 

Constructor Detail

NetworkDriverAdapter

public NetworkDriverAdapter()
Method Detail

getSystemConnectionMemo

public NceSystemConnectionMemo getSystemConnectionMemo()
Specified by:
getSystemConnectionMemo in interface PortAdapter
Overrides:
getSystemConnectionMemo in class NceNetworkPortController

configure

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


validOption2

public String[] validOption2()
Option 2 is binary vs ASCII command set.

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

option2Name

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

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

configureOption2

public void configureOption2(String value)
Set the binary vs ASCII command set option.

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

getCurrentOption2Setting

public String getCurrentOption2Setting()
Description copied from interface: PortAdapter
Get current option 2 value

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

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