jmri.jmrix.sprog
Class SprogSystemConnectionMemo

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.SystemConnectionMemo
      extended by jmri.jmrix.sprog.SprogSystemConnectionMemo

public class SprogSystemConnectionMemo
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.


Field Summary
(package private)  ComponentFactory cf
           
(package private) static org.slf4j.Logger log
           
 
Fields inherited from class jmri.jmrix.SystemConnectionMemo
sysPrefixes, userNames
 
Constructor Summary
SprogSystemConnectionMemo()
           
SprogSystemConnectionMemo(SprogConstants.SprogMode sm)
           
SprogSystemConnectionMemo(SprogTrafficController st, SprogConstants.SprogMode sm)
           
 
Method Summary
 void configureCommandStation()
          Configure the programming manager and "command station" objects
 void configureManagers()
          Configure the common managers for Sprog connections.
 void dispose()
           
<T> T
get(Class<?> T)
          Does this connection provide a manager of this type?
protected  ResourceBundle getActionModelResourceBundle()
           
 JMenu getMenu()
          Provide a menu with all items attached to this system connection
 SprogPowerManager getPowerManager()
           
 ProgrammerManager getProgrammerManager()
           
 SprogConstants.SprogMode getSprogMode()
           
 SprogTrafficController getSprogTrafficController()
          Provides access to the TrafficController for this particular connection.
 ThrottleManager getThrottleManager()
           
 boolean provides(Class<?> type)
          Does this connection provide a manager of this type?
 void setProgrammerManager(ProgrammerManager p)
           
 void setSprogMode(SprogConstants.SprogMode mode)
           
 void setSprogTrafficController(SprogTrafficController st)
           
 
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
 

Field Detail

cf

ComponentFactory cf

log

static org.slf4j.Logger log
Constructor Detail

SprogSystemConnectionMemo

public SprogSystemConnectionMemo(SprogTrafficController st,
                                 SprogConstants.SprogMode sm)

SprogSystemConnectionMemo

public SprogSystemConnectionMemo(SprogConstants.SprogMode sm)

SprogSystemConnectionMemo

public SprogSystemConnectionMemo()
Method Detail

setSprogMode

public void setSprogMode(SprogConstants.SprogMode mode)

getSprogMode

public SprogConstants.SprogMode getSprogMode()

getSprogTrafficController

public SprogTrafficController getSprogTrafficController()
Provides access to the TrafficController for this particular connection.


setSprogTrafficController

public void setSprogTrafficController(SprogTrafficController st)

getMenu

public JMenu getMenu()
Provide a menu with all items attached to this system connection


configureCommandStation

public void configureCommandStation()
Configure the programming manager and "command station" objects


provides

public boolean provides(Class<?> type)
Description copied from class: SystemConnectionMemo
Does this connection provide a manager of this type?

Overrides:
provides in class SystemConnectionMemo

get

public <T> T get(Class<?> T)
Description copied from class: SystemConnectionMemo
Does this connection provide a manager of this type?

Overrides:
get in class SystemConnectionMemo

configureManagers

public void configureManagers()
Configure the common managers for Sprog connections. This puts the common manager config in one place. This method is static so that it can be referenced from classes that don't inherit, including hexfile.HexFileFrame and locormi.LnMessageClient


getProgrammerManager

public ProgrammerManager getProgrammerManager()

setProgrammerManager

public void setProgrammerManager(ProgrammerManager p)

getPowerManager

public SprogPowerManager getPowerManager()

getThrottleManager

public ThrottleManager getThrottleManager()

getActionModelResourceBundle

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

dispose

public void dispose()
Overrides:
dispose in class SystemConnectionMemo


Copyright © 1997-2014 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