|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractManager
jmri.managers.AbstractTurnoutManager
jmri.jmrix.cmri.serial.SerialTurnoutManager
public class SerialTurnoutManager
Implement turnout manager for CMRI serial systems
System names are "CTnnn", where nnn is the turnout number without padding.
| Field Summary |
|---|
| Fields inherited from class jmri.implementation.AbstractManager |
|---|
_tsys, _tuser |
| Constructor Summary | |
|---|---|
SerialTurnoutManager()
|
|
| 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. |
Turnout |
createNewTurnout(String systemName,
String userName)
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked. |
static SerialTurnoutManager |
instance()
|
void |
notifySecondBitConflict(String conflict,
int bitNum)
Public method to notify user when the second bit of a proposed two output bit turnout has a conflict with another assigned bit |
void |
notifyTurnoutCreationError(String conflict,
int bitNum)
Public method to notify user of Turnout creation error. |
int |
selectNumberOfControlBits()
Public method to allow user to specify one or two output bits for turnout control Note: This method returns 1 or 2 if the user selected, or 0 if the user cancelled without selecting. |
int |
selectOutputType()
Public method to allow user to specify pulsed or steady state for two output bits for turnout control Note: This method returns 1 for steady state or 2 for pulsed if the user selected, or 0 if the user cancelled without selecting. |
char |
systemLetter()
|
| Methods inherited from class jmri.managers.AbstractTurnoutManager |
|---|
getBySystemName, getByUserName, getClosedText, getThrownText, getTurnout, getValidOperationTypes, newTurnout, provideTurnout, 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 jmri.TurnoutManager |
|---|
getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, dispose, getSystemNameArray, makeSystemName, register, removePropertyChangeListener |
| Constructor Detail |
|---|
public SerialTurnoutManager()
| Method Detail |
|---|
public char systemLetter()
public Turnout createNewTurnout(String systemName,
String userName)
AbstractTurnoutManager
createNewTurnout in class AbstractTurnoutManager
public void notifyTurnoutCreationError(String conflict,
int bitNum)
public int askNumControlBits(String systemName)
askNumControlBits in interface TurnoutManageraskNumControlBits in class AbstractTurnoutManagerpublic int askControlType(String systemName)
askControlType in interface TurnoutManageraskControlType in class AbstractTurnoutManagerpublic int selectNumberOfControlBits()
public int selectOutputType()
public void notifySecondBitConflict(String conflict,
int bitNum)
public static SerialTurnoutManager instance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||