jmri.jmrix.loconet
Class LnNetworkPortController

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

public abstract class LnNetworkPortController
extends AbstractNetworkPortController

Base for classes representing a LocoNet communications port

Author:
Kevin Dickerson Copyright (C) 2011

Field Summary
protected  LocoNetSystemConnectionMemo adaptermemo
           
protected  String commandStationName
           
protected  String[] commandStationNames
           
protected  boolean mCanRead
           
protected  boolean mProgPowersOff
           
 
Fields inherited from class jmri.jmrix.AbstractNetworkPortController
log, m_HostName, m_port, socketConn
 
Fields inherited from class jmri.jmrix.AbstractPortController
mDisabled, mManufacturer, mOpt1, mOpt2, opened
 
Constructor Summary
LnNetworkPortController()
           
 
Method Summary
 void setCommandStationType(String value)
          Set config info from the command station type name.
 void setDisabled(boolean disabled)
          Sets whether the connection is disabled
 
Methods inherited from class jmri.jmrix.AbstractNetworkPortController
connect, connect, dispose, getCurrentPortName, getHostName, getInputStream, getOutputStream, getPort, getSystemConnectionMemo, setHostName, setPort, setPort, status
 
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
configure, configureOption1, configureOption2, getCurrentOption1Setting, getCurrentOption2Setting, option1Name, option2Name, validOption1, validOption2
 
Methods inherited from interface jmri.jmrix.PortAdapter
getDisabled, getManufacturer, setManufacturer
 

Field Detail

adaptermemo

protected LocoNetSystemConnectionMemo adaptermemo

mCanRead

protected boolean mCanRead

mProgPowersOff

protected boolean mProgPowersOff

commandStationName

protected String commandStationName

commandStationNames

protected String[] commandStationNames
Constructor Detail

LnNetworkPortController

public LnNetworkPortController()
Method Detail

setCommandStationType

public void setCommandStationType(String value)
Set config info from the command station type name.


setDisabled

public void setDisabled(boolean disabled)
Description copied from interface: PortAdapter
Sets whether the connection is disabled

Specified by:
setDisabled in interface PortAdapter
Overrides:
setDisabled 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