|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.DefaultConditionalManager
public class DefaultConditionalManager
Basic Implementation of a ConditionalManager.
Note that Conditionals always have an associated parent Logix.
Logix system names must begin with IX, and be followed by a string, usually, but not always, a number. The system names of Conditionals always begin with the parent Logix's system name, then there is a capital C and a number.
Conditional system names are set automatically when the Conditional is created. All alphabetic characters in a Conditional system name must be upper case. This is enforced when a new Conditional is created via LogixTableAction.java.
| Field Summary | |
|---|---|
(package private) static DefaultConditionalManager |
_instance
|
(package private) static org.slf4j.Logger |
log
|
| Fields inherited from class jmri.managers.AbstractManager |
|---|
_tsys, _tuser, pcs |
| Fields inherited from interface jmri.Manager |
|---|
AUDIO, BLOCKBOSS, BLOCKS, CONDITIONALS, ENTRYEXIT, IDTAGS, LAYOUTBLOCKS, LIGHTS, LOGIXS, MEMORIES, OBLOCKS, PANELFILES, REPORTERS, ROUTES, SECTIONS, SENSORGROUPS, SENSORS, SIGNALGROUPS, SIGNALHEADS, SIGNALMASTLOGICS, SIGNALMASTS, TIMEBASE, TRANSITS, TURNOUTS, WARRANTS |
| Constructor Summary | |
|---|---|
DefaultConditionalManager()
|
|
| Method Summary | |
|---|---|
Conditional |
createNewConditional(String systemName,
String userName)
Method to create a new Conditional if the Conditional does not exist If the parent Logix cannot be found, the userName cannot be checked, but the Conditional is still created. |
void |
deleteConditional(Conditional c)
Remove an existing Conditional. |
Conditional |
getBySystemName(String name)
|
Conditional |
getByUserName(Logix x,
String key)
|
Conditional |
getByUserName(String key)
|
Conditional |
getConditional(Logix x,
String name)
Method to get an existing Conditional. |
Conditional |
getConditional(String name)
|
Logix |
getParentLogix(String name)
Parses the Conditional system name to get the parent Logix system name, then gets the parent Logix, and returns it. |
List<String> |
getSystemNameListForLogix(Logix x)
Get a list of all Conditional system names with the specified Logix parent |
String |
getSystemPrefix()
Provides access to the system prefix string. |
int |
getXMLOrder()
|
static DefaultConditionalManager |
instance()
|
char |
typeLetter()
|
| Methods inherited from class jmri.managers.AbstractManager |
|---|
addPropertyChangeListener, deregister, dispose, firePropertyChange, getBeanBySystemName, getBeanByUserName, getInstanceBySystemName, getInstanceByUserName, getNamedBean, getNamedBeanList, 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.ConditionalManager |
|---|
dispose |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getBeanByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, getSystemNameList, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
static DefaultConditionalManager _instance
static org.slf4j.Logger log
| Constructor Detail |
|---|
public DefaultConditionalManager()
| Method Detail |
|---|
public int getXMLOrder()
getXMLOrder in interface ManagergetXMLOrder in class AbstractManagerpublic String getSystemPrefix()
Manager
getSystemPrefix in interface Managerpublic char typeLetter()
typeLetter in interface Manager
public Conditional createNewConditional(String systemName,
String userName)
createNewConditional in interface ConditionalManagerpublic Logix getParentLogix(String name)
getParentLogix in interface ConditionalManagername - - system name of Conditional (must be trimmed and upper case)public void deleteConditional(Conditional c)
deleteConditional in interface ConditionalManager
public Conditional getConditional(Logix x,
String name)
getConditional in interface ConditionalManagerx - - parent Logix (may be null)name - - name to look up
public Conditional getConditional(String name)
getConditional in interface ConditionalManagerpublic Conditional getByUserName(String key)
getByUserName in interface ConditionalManager
public Conditional getByUserName(Logix x,
String key)
getByUserName in interface ConditionalManagerpublic Conditional getBySystemName(String name)
getBySystemName in interface ConditionalManagerpublic List<String> getSystemNameListForLogix(Logix x)
getSystemNameListForLogix in interface ConditionalManagerpublic static DefaultConditionalManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||