|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.implementation.AbstractNamedBean
jmri.implementation.AbstractTurnout
jmri.jmrix.secsi.SerialTurnout
public class SerialTurnout
SerialTurnout.java This object doesn't listen to the SECSI serial communications. This is because it should be the only object that is sending messages for this turnout; more than one Turnout object pointing to a single device is not allowed. Description: extend jmri.AbstractTurnout for SECSI serial layouts
| Field Summary |
|---|
| Fields inherited from class jmri.implementation.AbstractTurnout |
|---|
_activeFeedbackType, _cabLockout, _decoderName, _enableCabLockout, _enablePushButtonLockout, _inverted, _pushButtonLockout, _reportLocked, _validDecoderNames, _validFeedbackModes, _validFeedbackNames, _validFeedbackTypes, binaryOutput, inhibitOperation, myOperator, myTurnoutOperation |
| Fields inherited from class jmri.implementation.AbstractNamedBean |
|---|
mSystemName, mUserName |
| Fields inherited from interface jmri.Turnout |
|---|
CABLOCKOUT, CLOSED, DIRECT, EXACT, INDIRECT, LOCKED, MONITORING, ONESENSOR, PUSHBUTTONLOCKOUT, SIGNAL, THROWN, TWOSENSOR, UNLOCKED |
| Fields inherited from interface jmri.NamedBean |
|---|
INCONSISTENT, UNKNOWN |
| Constructor Summary | |
|---|---|
SerialTurnout(String systemName,
String userName)
Create a Turnout object, with both system and user names. |
|
| Method Summary | |
|---|---|
void |
dispose()
Deactivate this object, so that it releases as many resources as possible and no longer effects others. |
protected void |
forwardCommandChangeToLayout(int s)
Handle a request to change state by sending a turnout command |
protected void |
sendMessage(boolean closed)
|
protected void |
turnoutPushbuttonLockout(boolean _pushButtonLockout)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerialTurnout(String systemName,
String userName)
'systemName' was previously validated in SerialTurnoutManager
| Method Detail |
|---|
protected void forwardCommandChangeToLayout(int s)
forwardCommandChangeToLayout in class AbstractTurnouts - new state valueprotected void turnoutPushbuttonLockout(boolean _pushButtonLockout)
turnoutPushbuttonLockout in class AbstractTurnoutpublic void dispose()
NamedBeanFor example, if this object has listeners, after a call to this method it should no longer notify those listeners. Any native or system-wide resources it maintains should be released, including threads, files, etc.
It is an error to invoke any other methods on this object once dispose() has been called. Note, however, that there is no guarantee about behavior in that case.
Afterwards, references to this object may still exist elsewhere, preventing its garbage collection. But it's formally dead, and shouldn't be keeping any other objects alive. Therefore, this method should null out any references to other objects that this NamedBean contained.
dispose in interface NamedBeandispose in class AbstractTurnoutprotected void sendMessage(boolean closed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||