|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractManager
jmri.TransitManager
public class TransitManager
Implementation of a Transit Manager
This doesn't need an interface, since Transits are globaly implemented, instead of being system-specific.
Note that Transit system names must begin with IZ, and be followed by a string, usually, but not always, a number. All alphabetic characters in a Transit system name must be upper case. This is enforced when a Transit 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 |
|---|
| Fields inherited from class jmri.implementation.AbstractManager |
|---|
_tsys, _tuser |
| Constructor Summary | |
|---|---|
TransitManager()
|
|
| Method Summary | |
|---|---|
Transit |
createNewTransit(String systemName,
String userName)
Method to create a new Transit if the Transit does not exist Returns null if a Transit with the same systemName or userName already exists, or if there is trouble creating a new Transit. |
void |
deleteTransit(Transit z)
Remove an existing Transit |
Transit |
getBySystemName(String name)
|
Transit |
getByUserName(String key)
|
Transit |
getTransit(String name)
Method to get an existing Transit. |
static TransitManager |
instance()
|
char |
systemLetter()
|
char |
typeLetter()
|
| Methods inherited from class jmri.implementation.AbstractManager |
|---|
addPropertyChangeListener, deregister, dispose, firePropertyChange, getInstanceBySystemName, getInstanceByUserName, getSystemNameArray, getSystemNameList, makeSystemName, propertyChange, register, registerSelf, removePropertyChangeListener |
| 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 TransitManager()
| Method Detail |
|---|
public char systemLetter()
systemLetter in interface Managerpublic char typeLetter()
typeLetter in interface Manager
public Transit createNewTransit(String systemName,
String userName)
public Transit getTransit(String name)
name -
public Transit getBySystemName(String name)
public Transit getByUserName(String key)
public void deleteTransit(Transit z)
public static TransitManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||