|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.SectionManager
public class SectionManager
Basic Implementation of a SectionManager.
This doesn't have a "new" interface, since Sections are independently implemented, instead of being system-specific.
Note that Section system names must begin with IY, and be followed by a string, usually, but not always, a number. All alphabetic characters in a Section system name must be upper case. This is enforced when a Section is created.
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 | |
|---|---|
(package private) static SectionManager |
_instance
|
(package private) int |
lastAutoSectionRef
|
(package private) static org.slf4j.Logger |
log
|
(package private) DecimalFormat |
paddedNumber
|
| Fields inherited from class jmri.managers.AbstractManager |
|---|
_tsys, _tuser |
| 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 | |
|---|---|
SectionManager()
|
|
| Method Summary | |
|---|---|
Section |
createNewSection(String userName)
|
Section |
createNewSection(String systemName,
String userName)
Method to create a new Section if the Section does not exist Returns null if a Section with the same systemName or userName already exists, or if there is trouble creating a new Section. |
void |
deleteSection(Section y)
Remove an existing Section |
Section |
getBySystemName(String name)
|
Section |
getByUserName(String key)
|
Section |
getSection(String name)
Method to get an existing Section. |
String |
getSystemPrefix()
Provides access to the system prefix string. |
int |
getXMLOrder()
|
void |
initializeBlockingSensors()
Initialize all blocking sensors that exist - sets them to 'ACTIVE' |
static SectionManager |
instance()
|
int |
removeDirectionSensorsFromSSL(LayoutEditor lePanel)
Removes direction sensors from SSL for all signals. |
int |
setupDirectionSensors(LayoutEditor lePanel)
Checks direction sensors in SSL for signals. |
char |
typeLetter()
|
int |
validateAllSections(JmriJFrame frame,
LayoutEditor lePanel)
Validates all Sections |
| 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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Field Detail |
|---|
DecimalFormat paddedNumber
int lastAutoSectionRef
static SectionManager _instance
static org.slf4j.Logger log
| Constructor Detail |
|---|
public SectionManager()
| 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 Section createNewSection(String systemName,
String userName)
public Section createNewSection(String userName)
public void deleteSection(Section y)
public Section getSection(String name)
public Section getBySystemName(String name)
public Section getByUserName(String key)
public int validateAllSections(JmriJFrame frame,
LayoutEditor lePanel)
public int setupDirectionSensors(LayoutEditor lePanel)
public int removeDirectionSensorsFromSSL(LayoutEditor lePanel)
public void initializeBlockingSensors()
public static SectionManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||