|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.AbstractManager
jmri.AbstractTurnoutManager
public abstract class AbstractTurnoutManager
Abstract partial implementation of a TurnoutManager.
| Field Summary |
|---|
| Fields inherited from class jmri.AbstractManager |
|---|
_tsys, _tuser |
| Constructor Summary | |
|---|---|
AbstractTurnoutManager()
|
|
| Method Summary | |
|---|---|
int |
askControlType(String systemName)
Get from the user, the type of output to be used bits to control a turnout. |
int |
askNumControlBits(String systemName)
Get from the user, the number of addressed bits used to control a turnout. |
protected abstract Turnout |
createNewTurnout(String systemName,
String userName)
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked. |
Turnout |
getBySystemName(String key)
Locate an instance based on a system name. |
Turnout |
getByUserName(String key)
Locate an instance based on a user name. |
String |
getClosedText()
Get text to be used for the Turnout.CLOSED state in user communication. |
String |
getThrownText()
Get text to be used for the Turnout.THROWN state in user communication. |
Turnout |
getTurnout(String name)
Locate via user name, then system name if needed. |
String[] |
getValidOperationTypes()
Get a list of the valid TurnoutOPeration subtypes for use with turnouts of this system |
Turnout |
newTurnout(String sysName,
String userName)
Return an instance with the specified system and user names. |
Turnout |
provideTurnout(String name)
Locate via user name, then system name if needed. |
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.TurnoutManager |
|---|
getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, dispose, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Constructor Detail |
|---|
public AbstractTurnoutManager()
| Method Detail |
|---|
public char typeLetter()
typeLetter in interface Managerpublic Turnout provideTurnout(String name)
TurnoutManager
provideTurnout in interface TurnoutManagerpublic Turnout getTurnout(String name)
TurnoutManager
getTurnout in interface TurnoutManagerpublic Turnout getBySystemName(String key)
TurnoutManager
getBySystemName in interface TurnoutManagerpublic Turnout getByUserName(String key)
TurnoutManager
getByUserName in interface TurnoutManager
public Turnout newTurnout(String sysName,
String userName)
TurnoutManagerThis will always return a valid object reference; a new object will be created if necessary. In that case:
newTurnout in interface TurnoutManagerpublic String getClosedText()
getClosedText in interface TurnoutManagerpublic String getThrownText()
getThrownText in interface TurnoutManagerpublic int askNumControlBits(String systemName)
askNumControlBits in interface TurnoutManagerpublic int askControlType(String systemName)
askControlType in interface TurnoutManager
protected abstract Turnout createNewTurnout(String systemName,
String userName)
public String[] getValidOperationTypes()
TurnoutManager
getValidOperationTypes in interface TurnoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||