|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.AbstractLightManager
jmri.jmrix.nce.NceLightManager
public class NceLightManager
Implement light manager for NCE systems
System names are "NLnnnnn", where nnnnn is the stationary decoder address.
Based in part on SerialLightManager.java
| Field Summary |
|---|
| Fields inherited from class jmri.managers.AbstractManager |
|---|
_tsys, _tuser |
| 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 |
| Constructor Summary | |
|---|---|
NceLightManager(NceTrafficController tc,
String prefix)
|
|
| 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 |
Light |
createNewLight(String systemName,
String userName)
Method to create a new Light based on the system name Returns null if the system name is not in a valid format Assumes calling method has checked that a Light with this system name does not already exist |
int |
getBitFromSystemName(String systemName)
Get the bit address from the system name |
String |
getSystemPrefix()
Returns the system prefix for this NCE |
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, 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 |
| Methods inherited from interface jmri.LightManager |
|---|
dispose, getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public NceLightManager(NceTrafficController tc,
String prefix)
| Method Detail |
|---|
public String getSystemPrefix()
public Light createNewLight(String systemName,
String userName)
createNewLight in class AbstractLightManagerpublic int getBitFromSystemName(String systemName)
public boolean allowMultipleAdditions(String systemName)
allowMultipleAdditions in interface LightManagerallowMultipleAdditions in class AbstractLightManagerpublic boolean validSystemNameFormat(String systemName)
public boolean validSystemNameConfig(String systemName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||