|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConditionalManager
Interface for obtaining Conditionals
This doesn't have a "new" method, since Conditionals are separately implemented, instead of being system-specific.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
Conditional |
createNewConditional(String systemName,
String userName)
Method to create a new Conditional if the Conditional does not exist Returns null if a Conditional with the same systemName or userName already exists, or if there is trouble creating a new Conditional If the parent Logix cannot be found, the userName cannot be checked, but the Conditional is still created. |
void |
deleteConditional(Conditional c)
Delete Conditional by removing it from the manager. |
void |
dispose()
Free resources when no longer used. |
Conditional |
getBySystemName(String s)
|
Conditional |
getByUserName(Logix x,
String s)
|
Conditional |
getByUserName(String s)
|
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 |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getBeanByUserName, getNamedBean, getNamedBeanList, getSystemNameArray, getSystemNameList, getSystemPrefix, getXMLOrder, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| Method Detail |
|---|
void dispose()
Manager
dispose in interface Manager
Conditional createNewConditional(String systemName,
String userName)
Logix getParentLogix(String name)
name - - system name of Conditional (must be trimmed and upper case)
Conditional getConditional(Logix x,
String name)
x - - parent Logix (may be null)name - - name to look up
Conditional getConditional(String name)
Conditional getByUserName(String s)
Conditional getByUserName(Logix x,
String s)
Conditional getBySystemName(String s)
List<String> getSystemNameListForLogix(Logix x)
void deleteConditional(Conditional c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||