jmri.jmrix.jmriclient
Class JMRIClientLightManager
java.lang.Object
jmri.managers.AbstractManager
jmri.managers.AbstractLightManager
jmri.jmrix.jmriclient.JMRIClientLightManager
- All Implemented Interfaces:
- PropertyChangeListener, Serializable, EventListener, LightManager, Manager
public class JMRIClientLightManager
- extends AbstractLightManager
Implement light manager for JMRIClient systems
System names are "prefixnnn", where prefix is the system prefix and
nnn is the light number without padding.
- Author:
- Paul Bender Copyright (C) 2010
- 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 |
Light |
createNewLight(String systemName,
String userName)
Internal method to invoke the factory, after all the
logic for returning an existing method has been invoked. |
String |
getSystemPrefix()
Provides access to the system prefix string. |
boolean |
validSystemNameConfig(String systemName)
Public method to validate system name for configuration
returns 'true' if system name has a valid meaning in current
configuration, else returns 'false'
for now, this method always returns 'true'; it is needed for the
Abstract Light class |
boolean |
validSystemNameFormat(String systemName)
Public method to validate system name format
returns 'true' if system name has a valid format, else returns 'false' |
| Methods inherited from class jmri.managers.AbstractLightManager |
activateAllLights, allowMultipleAdditions, convertSystemNameToAlternate, getBySystemName, getByUserName, getLight, getXMLOrder, newLight, normalizeSystemName, provideLight, supportsVariableLights, typeLetter |
| 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 |
JMRIClientLightManager
public JMRIClientLightManager(JMRIClientSystemConnectionMemo memo)
getSystemPrefix
public String getSystemPrefix()
- Description copied from interface:
Manager
- Provides access to the system prefix string.
This was previously called the "System letter"
createNewLight
public Light createNewLight(String systemName,
String userName)
- Description copied from class:
AbstractLightManager
- Internal method to invoke the factory, after all the
logic for returning an existing method has been invoked.
- Specified by:
createNewLight in class AbstractLightManager
- Returns:
- new null
validSystemNameFormat
public boolean validSystemNameFormat(String systemName)
- Public method to validate system name format
returns 'true' if system name has a valid format, else returns 'false'
validSystemNameConfig
public boolean validSystemNameConfig(String systemName)
- Public method to validate system name for configuration
returns 'true' if system name has a valid meaning in current
configuration, else returns 'false'
for now, this method always returns 'true'; it is needed for the
Abstract Light class
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: