|
||||||||||
| 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.secsi.SerialLightManager
public class SerialLightManager
Implement light manager for SECSI serial systems
System names are "TLnnn", where nnn is the bit number without padding.
Based in part on SerialTurnoutManager.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 | |
|---|---|
SerialLightManager()
|
|
| Method Summary | |
|---|---|
String |
convertSystemNameToAlternate(String systemName)
Public method to convert system name to its alternate format Returns a normalized system name if system name is valid and has a valid alternate representation, else return "". |
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 or if the system name does not correspond to a configured C/MRI digital output bit Assumes calling method has checked that a Light with this system name does not already exist |
String |
getSystemPrefix()
Returns the system letter for SECSI |
static SerialLightManager |
instance()
Allow access to SerialLightManager |
String |
normalizeSystemName(String systemName)
Public method to normalize a system name Returns a normalized system name if system name has a valid format, else returns "". |
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' |
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, getBySystemName, getByUserName, getLight, getXMLOrder, newLight, 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 SerialLightManager()
| Method Detail |
|---|
public String getSystemPrefix()
public Light createNewLight(String systemName,
String userName)
createNewLight in class AbstractLightManagerpublic boolean validSystemNameFormat(String systemName)
public boolean validSystemNameConfig(String systemName)
public String normalizeSystemName(String systemName)
Returns a normalized system name if system name has a valid format, else returns "".
normalizeSystemName in interface LightManagernormalizeSystemName in class AbstractLightManagerpublic String convertSystemNameToAlternate(String systemName)
Returns a normalized system name if system name is valid and has a valid alternate representation, else return "".
convertSystemNameToAlternate in interface LightManagerconvertSystemNameToAlternate in class AbstractLightManagerpublic static SerialLightManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||