|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.BlockManager
public class BlockManager
Basic Implementation of a BlockManager.
Note that this does not enforce any particular system naming convention.
Note this is a concrete class, unlike the interface/implementation pairs of most Managers, because there are currently only one implementation for Blocks.
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 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 | |
|---|---|
BlockManager()
|
|
| Method Summary | |
|---|---|
Block |
createNewBlock(String userName)
|
Block |
createNewBlock(String systemName,
String userName)
Method to create a new Block if it does not exist Returns null if a Block with the same systemName or userName already exists, or if there is trouble creating a new Block. |
Block |
getBlock(String name)
Method to get an existing Block. |
Block |
getBySystemName(String name)
|
Block |
getByUserName(String key)
|
String |
getDefaultSpeed()
|
String |
getSystemPrefix()
Provides access to the system prefix string. |
int |
getXMLOrder()
|
static BlockManager |
instance()
|
Block |
provideBlock(String name)
|
boolean |
savePathInfo()
|
void |
savePathInfo(boolean save)
|
void |
setDefaultSpeed(String speed)
|
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 java.beans.PropertyChangeListener |
|---|
propertyChange |
| Constructor Detail |
|---|
public BlockManager()
| Method Detail |
|---|
public int getXMLOrder()
getXMLOrder in interface ManagergetXMLOrder in class AbstractManagerpublic String getSystemPrefix()
Manager
getSystemPrefix in interface Managerpublic char typeLetter()
typeLetter in interface Managerpublic boolean savePathInfo()
public void savePathInfo(boolean save)
public Block createNewBlock(String systemName,
String userName)
public Block createNewBlock(String userName)
public Block provideBlock(String name)
public Block getBlock(String name)
public Block getBySystemName(String name)
public Block getByUserName(String key)
public static BlockManager instance()
public void setDefaultSpeed(String speed)
throws JmriException
JmriExceptionpublic String getDefaultSpeed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||