jmri.managers
Class DefaultSignalMastManager
java.lang.Object
jmri.managers.AbstractManager
jmri.managers.DefaultSignalMastManager
- All Implemented Interfaces:
- PropertyChangeListener, EventListener, Manager, SignalMastManager
public class DefaultSignalMastManager
- extends AbstractManager
- implements SignalMastManager, PropertyChangeListener
Default implementation of a SignalMastManager.
Note that this does not enforce any particular system naming convention
at the present time. They're just names...
- Author:
- Bob Jacobsen Copyright (C) 2009
| Fields inherited from interface jmri.Manager |
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Methods inherited from class jmri.managers.AbstractManager |
addPropertyChangeListener, deregister, dispose, firePropertyChange, getBeanBySystemName, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, registerSelf, removePropertyChangeListener, systemLetter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSignalMastManager
public DefaultSignalMastManager()
getXMLOrder
public int getXMLOrder()
- Specified by:
getXMLOrder in interface Manager- Specified by:
getXMLOrder in class AbstractManager
getSystemPrefix
public String getSystemPrefix()
- Description copied from interface:
Manager
- Provides access to the system prefix string.
This was previously called the "System letter"
- Specified by:
getSystemPrefix in interface Manager
typeLetter
public char typeLetter()
- Specified by:
typeLetter in interface Manager
- Returns:
- The type letter for a specific implementation
getSignalMast
public SignalMast getSignalMast(String name)
- Description copied from interface:
SignalMastManager
- Locate via user name, then system name if needed.
Does not create a new one if nothing found
- Specified by:
getSignalMast in interface SignalMastManager
- Returns:
- null if no match found
provideSignalMast
public SignalMast provideSignalMast(String prefix,
String signalSystem,
String mastName,
String[] heads)
- Specified by:
provideSignalMast in interface SignalMastManager
provideSignalMast
public SignalMast provideSignalMast(String name)
- Description copied from interface:
SignalMastManager
- Locate via user name, then system name if needed.
Create new one from system name if needed
- Specified by:
provideSignalMast in interface SignalMastManager
- Parameters:
name - User name, system name, or address which
can be promoted to system name
- Returns:
- Never null
getBySystemName
public SignalMast getBySystemName(String key)
- Specified by:
getBySystemName in interface SignalMastManager
getByUserName
public SignalMast getByUserName(String key)
- Specified by:
getByUserName in interface SignalMastManager
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: