|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractProxyManager
jmri.managers.ProxyTurnoutManager
public class ProxyTurnoutManager
Implementation of a TurnoutManager that can serves as a proxy for multiple system-specific implementations. The first to be added is the "Primary".
| Constructor Summary | |
|---|---|
ProxyTurnoutManager()
|
|
| Method Summary | |
|---|---|
void |
addManager(Manager m)
Revise superclass behavior: Added managers mean that the default internal manager is not the primary. |
int |
askControlType(String sysName)
Get from the user, the type of output to be used bits to control a turnout. |
int |
askNumControlBits(String sysName)
Get from the user, the number of addressed bits used to control a turnout. |
Turnout |
getBySystemName(String systemName)
Locate an instance based on a system name. |
Turnout |
getByUserName(String userName)
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()
TurnoutOperation support. |
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. |
| Methods inherited from class jmri.managers.AbstractProxyManager |
|---|
addPropertyChangeListener, deregister, dispose, getSystemNameList, makeSystemName, register, removePropertyChangeListener, systemLetter, typeLetter |
| 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, typeLetter |
| Constructor Detail |
|---|
public ProxyTurnoutManager()
| Method Detail |
|---|
public void addManager(Manager m)
addManager in class AbstractProxyManagerpublic Turnout getTurnout(String name)
getTurnout in interface TurnoutManagername -
public Turnout provideTurnout(String name)
TurnoutManager
provideTurnout in interface TurnoutManagerpublic Turnout getBySystemName(String systemName)
getBySystemName in interface TurnoutManagerpublic Turnout getByUserName(String userName)
getByUserName in interface TurnoutManager
public Turnout newTurnout(String sysName,
String userName)
This will always return a valid object reference for a valid request; 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 sysName)
askNumControlBits in interface TurnoutManagerpublic int askControlType(String sysName)
askControlType in interface TurnoutManagerpublic String[] getValidOperationTypes()
getValidOperationTypes in interface TurnoutManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||