jmri.managers
Class InternalLightManager
java.lang.Object
jmri.managers.AbstractManager
jmri.managers.AbstractLightManager
jmri.managers.InternalLightManager
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener, LightManager, Manager
public class InternalLightManager
- extends AbstractLightManager
Implement a light manager for "Internal" (virtual) lights.
- Author:
- Bob Jacobsen Copyright (C) 2009
- See Also:
- Serialized Form
| 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 |
|
Method Summary |
boolean |
allowMultipleAdditions(String systemName)
A method that determines if it is possible to add a range of lights in numerical
order eg 11 thru 18, primarily used to show/not show the add range box in the add Light window |
protected Light |
createNewLight(String systemName,
String userName)
Create and return an internal (no layout connection) Light |
String |
getSystemPrefix()
Provides access to the system prefix string. |
boolean |
supportsVariableLights(String systemName)
Returns 'true' if the System can potentially support variable Lights
Note: LightManagers for Systems that can support variable Lights should
override this method and return 'true'. |
boolean |
validSystemNameConfig(String systemName)
Validate system name for the current hardware configuration
returns 'true' if system name has a valid meaning in current configuration,
else returns 'false' |
boolean |
validSystemNameFormat(String systemName)
Validate system name format
returns 'true' if system name has a valid format, else returns 'false' |
| 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 |
InternalLightManager
public InternalLightManager()
createNewLight
protected Light createNewLight(String systemName,
String userName)
- Create and return an internal (no layout connection) Light
- Specified by:
createNewLight in class AbstractLightManager
- Returns:
- new null
getSystemPrefix
public String getSystemPrefix()
- Description copied from interface:
Manager
- Provides access to the system prefix string.
This was previously called the "System letter"
validSystemNameConfig
public boolean validSystemNameConfig(String systemName)
- Description copied from interface:
LightManager
- Validate system name for the current hardware configuration
returns 'true' if system name has a valid meaning in current configuration,
else returns 'false'
validSystemNameFormat
public boolean validSystemNameFormat(String systemName)
- Description copied from interface:
LightManager
- Validate system name format
returns 'true' if system name has a valid format, else returns 'false'
supportsVariableLights
public boolean supportsVariableLights(String systemName)
- Description copied from class:
AbstractLightManager
- Returns 'true' if the System can potentially support variable Lights
Note: LightManagers for Systems that can support variable Lights should
override this method and return 'true'.
- Specified by:
supportsVariableLights in interface LightManager- Overrides:
supportsVariableLights in class AbstractLightManager
allowMultipleAdditions
public boolean allowMultipleAdditions(String systemName)
- Description copied from class:
AbstractLightManager
- A method that determines if it is possible to add a range of lights in numerical
order eg 11 thru 18, primarily used to show/not show the add range box in the add Light window
- Specified by:
allowMultipleAdditions in interface LightManager- Overrides:
allowMultipleAdditions in class AbstractLightManager
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: