jmri.jmrix
Class SystemConnectionMemo

Show UML class diagram
java.lang.Object
  extended by jmri.jmrix.SystemConnectionMemo
Direct Known Subclasses:
AcelaSystemConnectionMemo, CanSystemConnectionMemo, Dcc4PcSystemConnectionMemo, EasyDccSystemConnectionMemo, EcosSystemConnectionMemo, IEEE802154SystemConnectionMemo, InternalSystemConnectionMemo, JMRIClientSystemConnectionMemo, LocoNetSystemConnectionMemo, MarklinSystemConnectionMemo, Mx1SystemConnectionMemo, NceSystemConnectionMemo, QsiSystemConnectionMemo, RfidSystemConnectionMemo, SerialSystemConnectionMemo, SpeedoSystemConnectionMemo, SprogSystemConnectionMemo, SRCPSystemConnectionMemo, TamsSystemConnectionMemo, XNetSystemConnectionMemo

public abstract class SystemConnectionMemo
extends Object

Lightweight abstract 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) static org.slf4j.Logger log
           
protected static ArrayList<String> sysPrefixes
           
protected static ArrayList<String> userNames
           
 
Constructor Summary
protected SystemConnectionMemo(String prefix, String userName)
           
 
Method Summary
static void addPropertyChangeListener(PropertyChangeListener l)
           
protected  void addToActionList()
           
 void dispose()
           
<T> T
get(Class<?> T)
          Does this connection provide a manager of this type?
protected abstract  ResourceBundle getActionModelResourceBundle()
           
 boolean getDisabled()
           
 String getSystemPrefix()
          Provides access to the system prefix string.
 String getUserName()
          Provides access to the system user name string.
protected  void notifyPropertyChangeListener(String property, Object oldValue, Object newValue)
          Trigger the notification of all PropertyChangeListeners
 boolean provides(Class<?> c)
          Does this connection provide a manager of this type?
 void register()
          Store in InstanceManager with proper ID for later retrieval as a generic system
protected  void removeFromActionList()
           
static void removePropertyChangeListener(PropertyChangeListener l)
           
 void setDisabled(boolean disabled)
           
 boolean setSystemPrefix(String systemPrefix)
           
 boolean setUserName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userNames

protected static final ArrayList<String> userNames

sysPrefixes

protected static final ArrayList<String> sysPrefixes

log

static org.slf4j.Logger log
Constructor Detail

SystemConnectionMemo

protected SystemConnectionMemo(String prefix,
                               String userName)
Method Detail

register

public void register()
Store in InstanceManager with proper ID for later retrieval as a generic system


getSystemPrefix

public String getSystemPrefix()
Provides access to the system prefix string. This was previously called the "System letter"


setSystemPrefix

public boolean setSystemPrefix(String systemPrefix)

getUserName

public String getUserName()
Provides access to the system user name string. This was previously fixed at configuration time.


setUserName

public boolean setUserName(String name)

provides

public boolean provides(Class<?> c)
Does this connection provide a manager of this type?


get

public <T> T get(Class<?> T)
Does this connection provide a manager of this type?


dispose

public void dispose()

getDisabled

public boolean getDisabled()

setDisabled

public void setDisabled(boolean disabled)

removePropertyChangeListener

public static void removePropertyChangeListener(PropertyChangeListener l)

addPropertyChangeListener

public static void addPropertyChangeListener(PropertyChangeListener l)

notifyPropertyChangeListener

protected void notifyPropertyChangeListener(String property,
                                            Object oldValue,
                                            Object newValue)
Trigger the notification of all PropertyChangeListeners


getActionModelResourceBundle

protected abstract ResourceBundle getActionModelResourceBundle()

addToActionList

protected void addToActionList()

removeFromActionList

protected void removeFromActionList()


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