|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.AbstractManager
jmri.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.AbstractManager |
|---|
_tsys, _tuser |
| 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 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. |
static DefaultLogixManager |
instance()
|
void |
setLoadDisabled(boolean s)
Support for loading Logixs in a disabled state to debug loops |
char |
systemLetter()
|
char |
typeLetter()
|
| Methods inherited from class jmri.AbstractManager |
|---|
addPropertyChangeListener, deregister, dispose, firePropertyChange, getInstanceBySystemName, getInstanceByUserName, getSystemNameList, makeSystemName, propertyChange, register, removePropertyChangeListener |
| 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, makeSystemName, register, removePropertyChangeListener |
| Methods inherited from interface java.beans.PropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public DefaultLogixManager()
| Method Detail |
|---|
public char systemLetter()
systemLetter in interface Managerpublic char typeLetter()
typeLetter in interface Manager
public Logix createNewLogix(String systemName,
String userName)
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 | |||||||||