jmri.jmrix.powerline
Class SerialSystemConnectionMemo

java.lang.Object
  extended by jmri.jmrix.SystemConnectionMemo
      extended by jmri.jmrix.powerline.SerialSystemConnectionMemo
Direct Known Subclasses:
SpecificSystemConnectionMemo, SpecificSystemConnectionMemo, SpecificSystemConnectionMemo, SpecificSystemConnectionMemo

public class SerialSystemConnectionMemo
extends SystemConnectionMemo

Lightweight class to denote that a system is active, and provide general information.

Objects of specific subtypes are registered in the instance manager to activate their particular system.

Author:
Bob Jacobsen Copyright (C) 2010 copied from NCE into Powerline for multiple connections by, Ken Cameron Copyright (C) 2011

Field Summary
 
Fields inherited from class jmri.jmrix.SystemConnectionMemo
sysPrefixes, userNames
 
Constructor Summary
SerialSystemConnectionMemo()
           
 
Method Summary
 void configureManagers()
          Configure the common managers for Powerline connections.
 void dispose()
           
<T> T
get(Class<?> T)
          Provide manager by class
protected  ResourceBundle getActionModelResourceBundle()
           
 SerialLightManager getLightManager()
           
 ProgrammerManager getProgrammerManager()
          Always null as powerline doesn't have a programmer
 SerialSensorManager getSensorManager()
           
 SerialAddress getSerialAddress()
          Provide access to a SerialAddress for this particular connection
 SerialTrafficController getTrafficController()
          Provides access to the TrafficController for this particular connection.
 SerialTurnoutManager getTurnoutManager()
           
 boolean provides(Class<?> type)
          Tells which managers this provides by class
 void setLightManager(SerialLightManager m)
           
 void setProgrammerManager(ProgrammerManager p)
           
 void setSensorManager(SerialSensorManager m)
           
 void setSerialAddress(SerialAddress sa)
           
 void setTrafficController(SerialTrafficController tc)
           
 void setTurnoutManager(SerialTurnoutManager m)
           
 
Methods inherited from class jmri.jmrix.SystemConnectionMemo
addPropertyChangeListener, addToActionList, getDisabled, getSystemPrefix, getUserName, notifyPropertyChangeListener, register, removeFromActionList, removePropertyChangeListener, setDisabled, setSystemPrefix, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialSystemConnectionMemo

public SerialSystemConnectionMemo()
Method Detail

getTrafficController

public SerialTrafficController getTrafficController()
Provides access to the TrafficController for this particular connection.


setTrafficController

public void setTrafficController(SerialTrafficController tc)

getSerialAddress

public SerialAddress getSerialAddress()
Provide access to a SerialAddress for this particular connection


setSerialAddress

public void setSerialAddress(SerialAddress sa)

getProgrammerManager

public ProgrammerManager getProgrammerManager()
Always null as powerline doesn't have a programmer


setProgrammerManager

public void setProgrammerManager(ProgrammerManager p)

provides

public boolean provides(Class<?> type)
Tells which managers this provides by class

Overrides:
provides in class SystemConnectionMemo

get

public <T> T get(Class<?> T)
Provide manager by class

Overrides:
get in class SystemConnectionMemo

configureManagers

public void configureManagers()
Configure the common managers for Powerline connections. This puts the common manager config in one place.


getTurnoutManager

public SerialTurnoutManager getTurnoutManager()

getLightManager

public SerialLightManager getLightManager()

getSensorManager

public SerialSensorManager getSensorManager()

setTurnoutManager

public void setTurnoutManager(SerialTurnoutManager m)

setLightManager

public void setLightManager(SerialLightManager m)

setSensorManager

public void setSensorManager(SerialSensorManager m)

getActionModelResourceBundle

protected ResourceBundle getActionModelResourceBundle()
Specified by:
getActionModelResourceBundle in class SystemConnectionMemo

dispose

public void dispose()
Overrides:
dispose in class SystemConnectionMemo


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