|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.DefaultLogixManager
public class DefaultLogixManager
Basic Implementation of a LogixManager.
Note that Logix system names must begin with IX, and be followed by a string, usually, but not always, a number. All alphabetic characters in a Logix system name must be upper case. This is enforced when a Logix is created.
The system names of Conditionals belonging to a Logix begin with the Logix's system name, then there is a capital C and a number.
| 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 | |
|---|---|
DefaultLogixManager()
|
|
| Method Summary | |
|---|---|
void |
activateAllLogixs()
Activate all Logixs that are not currently active This method is called after a configuration file is loaded. |
Logix |
createNewLogix(String userName)
For use with User GUI, to allow the auto generation of systemNames, where the user can optionally supply a username. |
Logix |
createNewLogix(String systemName,
String userName)
Method to create a new Logix if the Logix does not exist Returns null if a Logix with the same systemName or userName already exists, or if there is trouble creating a new Logix. |
void |
deleteLogix(Logix x)
Remove an existing Logix and delete all its conditionals. |
Logix |
getBySystemName(String name)
|
Logix |
getByUserName(String key)
|
Logix |
getLogix(String name)
Method to get an existing Logix. |
String |
getSystemPrefix()
Provides access to the system prefix string. |
int |
getXMLOrder()
|
static DefaultLogixManager |
instance()
|
void |
setLoadDisabled(boolean s)
Support for loading Logixs in a disabled state to debug loops |
char |
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.LogixManager |
|---|
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 DefaultLogixManager()
| 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 Logix createNewLogix(String systemName,
String userName)
createNewLogix in interface LogixManagerpublic Logix createNewLogix(String userName)
LogixManager
createNewLogix in interface LogixManagerpublic void deleteLogix(Logix x)
deleteLogix in interface LogixManagerpublic void activateAllLogixs()
activateAllLogixs in interface LogixManagerpublic Logix getLogix(String name)
getLogix in interface LogixManagerpublic Logix getBySystemName(String name)
getBySystemName in interface LogixManagerpublic Logix getByUserName(String key)
getByUserName in interface LogixManagerpublic void setLoadDisabled(boolean s)
LogixManager
setLoadDisabled in interface LogixManagerpublic static DefaultLogixManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||