|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.AbstractNamedBean
jmri.AbstractTurnout
jmri.jmrix.nce.NceTurnout
public class NceTurnout
Implement a Turnout via NCE communications.
This object doesn't listen to the NCE 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.
| Field Summary |
|---|
| 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 | |
|---|---|
NceTurnout(int number)
NCE turnouts use the NMRA number (0-2044) as their numerical identification. |
|
| Method Summary | |
|---|---|
boolean |
canInvert()
NCE turnouts can be inverted |
boolean |
canLock(int turnoutLockout)
NCE turnouts support two types of lockouts, pushbutton and cab. |
void |
enableLockOperation(int turnoutLockout,
boolean enabled)
Control which turnout locks are enabled |
protected void |
forwardCommandChangeToLayout(int s)
Handle a request to change state, typically by sending a message to the layout in some child class. |
int |
getNumber()
|
static int |
getNumNtTurnouts()
|
protected void |
sendMessage(boolean closed)
|
protected void |
turnoutPushbuttonLockout(boolean pushButtonLockout)
Send a message to the layout to lock or unlock the turnout pushbuttons if true, pushbutton lockout enabled |
| Methods inherited from class jmri.AbstractNamedBean |
|---|
addPropertyChangeListener, firePropertyChange, getComment, getNumPropertyChangeListeners, getSystemName, getUserName, removePropertyChangeListener, setComment, setUserName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jmri.NamedBean |
|---|
addPropertyChangeListener, getComment, getNumPropertyChangeListeners, getSystemName, getUserName, removePropertyChangeListener, setComment, setUserName |
| Constructor Detail |
|---|
public NceTurnout(int number)
| Method Detail |
|---|
public int getNumber()
public static int getNumNtTurnouts()
protected void forwardCommandChangeToLayout(int s)
AbstractTurnout
forwardCommandChangeToLayout in class AbstractTurnouts - new state valueprotected void turnoutPushbuttonLockout(boolean pushButtonLockout)
turnoutPushbuttonLockout in class AbstractTurnoutpublic boolean canInvert()
canInvert in interface TurnoutcanInvert in class AbstractTurnoutpublic boolean canLock(int turnoutLockout)
canLock in interface TurnoutcanLock in class AbstractTurnout
public void enableLockOperation(int turnoutLockout,
boolean enabled)
enableLockOperation in interface TurnoutenableLockOperation in class AbstractTurnoutprotected void sendMessage(boolean closed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||