|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.managers.AbstractManager
jmri.managers.AbstractTurnoutManager
jmri.jmrix.loconet.LnTurnoutManager
public class LnTurnoutManager
LnTurnoutManager implements the TurnoutManager.
System names are "LTnnn", where nnn is the turnout number without padding.
Some of the message formats used in this class are Copyright Digitrax, Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact Digitrax Inc for separate permission.
Since LocoNet messages requesting turnout operations can arrive faster than the command station can send them on the rails, the command station has a short queue of messages. When that gets full, it sends a LACK, indicating that the request was not forwarded on the rails. In that case, this class goes into a tight loop, resending the last turnout message seen until it's received without a LACK reply. Note two things about this:
Description: Implement turnout manager for loconet
| 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 | |
|---|---|
LnTurnoutManager(LocoNetInterface fastcontroller,
LocoNetInterface throttledcontroller,
String prefix)
|
|
| Method Summary | |
|---|---|
Turnout |
createNewTurnout(String systemName,
String userName)
Internal method to invoke the factory, after all the logic for returning an existing method has been invoked. |
void |
dispose()
Free resources when no longer used. |
String |
getSystemPrefix()
Provides access to the system prefix string. |
void |
message(LocoNetMessage l)
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout. |
| Methods inherited from class jmri.managers.AbstractManager |
|---|
addPropertyChangeListener, deregister, 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 jmri.TurnoutManager |
|---|
getSystemNameList |
| Methods inherited from interface jmri.Manager |
|---|
addPropertyChangeListener, deregister, getBeanBySystemName, getSystemNameArray, makeSystemName, register, removePropertyChangeListener, systemLetter |
| Constructor Detail |
|---|
public LnTurnoutManager(LocoNetInterface fastcontroller,
LocoNetInterface throttledcontroller,
String prefix)
| Method Detail |
|---|
public String getSystemPrefix()
Manager
getSystemPrefix in interface Managerpublic void dispose()
Manager
dispose in interface Managerdispose in class AbstractManager
public Turnout createNewTurnout(String systemName,
String userName)
AbstractTurnoutManager
createNewTurnout in class AbstractTurnoutManagerpublic void message(LocoNetMessage l)
LocoNetListener
message in interface LocoNetListenerl - The received LocoNet message. Note that this same object
may be presented to multiple users. It should not be
modified here.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||