jmri.jmrix.can.cbus
Class CbusTurnout

java.lang.Object
  extended by jmri.implementation.AbstractNamedBean
      extended by jmri.implementation.AbstractTurnout
          extended by jmri.jmrix.can.cbus.CbusTurnout
All Implemented Interfaces:
PropertyChangeListener, Serializable, EventListener, AbstractMRListener, CanListener, NamedBean, Turnout

public class CbusTurnout
extends AbstractTurnout
implements CanListener

Turnout for CBUS connections.

Author:
Bob Jacobsen Copyright (C) 2001
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jmri.implementation.AbstractTurnout
_activeFeedbackType, _cabLockout, _decoderName, _enableCabLockout, _enablePushButtonLockout, _inverted, _pushButtonLockout, _reportLocked, _validDecoderNames, _validFeedbackModes, _validFeedbackNames, _validFeedbackTypes, inhibitOperation, myOperator, myTurnoutOperation
 
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
protected CbusTurnout(String systemName)
           
protected CbusTurnout(String systemName, String userName)
           
 
Method Summary
protected  void forwardCommandChangeToLayout(int s)
          Handle a request to change state by sending CBUS events.
 void message(CanMessage f)
           
 void reply(CanReply f)
           
protected  void turnoutPushbuttonLockout(boolean locked)
           
 
Methods inherited from class jmri.implementation.AbstractTurnout
canInvert, canLock, dispose, enableLockOperation, forwardCommandChangeToLayout, getCommandedState, getControlType, getCurrentOperator, getDecoderName, getFeedbackMode, getFeedbackModeForOperation, getFeedbackModeName, getFirstSensor, getInhibitOperation, getInverted, getKnownState, getLocked, getNumberOutputBits, getReportLocked, getSecondSensor, getState, getTurnoutOperation, getTurnoutOperator, getValidDecoderNames, getValidFeedbackNames, getValidFeedbackTypes, isConsistentState, newCommandedState, newKnownState, operationPropertyChange, propertyChange, provideFirstFeedbackSensor, provideSecondFeedbackSensor, sensorPropertyChange, setCommandedState, setControlType, setDecoderName, setFeedbackMode, setFeedbackMode, setInhibitOperation, setInitialKnownStateFromFeedback, setInverted, setLocked, setNumberOutputBits, setReportLocked, setState, setTurnoutOperation, turnoutPushbuttonLockout
 
Methods inherited from class jmri.implementation.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

CbusTurnout

protected CbusTurnout(String systemName)

CbusTurnout

protected CbusTurnout(String systemName,
                      String userName)
Method Detail

forwardCommandChangeToLayout

protected void forwardCommandChangeToLayout(int s)
Handle a request to change state by sending CBUS events.

Specified by:
forwardCommandChangeToLayout in class AbstractTurnout
Parameters:
s - new state value

message

public void message(CanMessage f)
Specified by:
message in interface CanListener

reply

public void reply(CanReply f)
Specified by:
reply in interface CanListener

turnoutPushbuttonLockout

protected void turnoutPushbuttonLockout(boolean locked)
Specified by:
turnoutPushbuttonLockout in class AbstractTurnout


Copyright © 1997 - 2009 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads