Package jmri
Class RawTurnoutOperation
java.lang.Object
jmri.beans.PropertyChangeSupport
jmri.TurnoutOperation
jmri.CommonTurnoutOperation
jmri.RawTurnoutOperation
- All Implemented Interfaces:
Comparable<Object>,PropertyChangeFirer,PropertyChangeProvider
RawTurnoutOperation class - specialization of TurnoutOperation to provide
automatic retry for a turnout with no feedback by sending raw NMRA commands
to the turnout. This class is based on the NoTurnoutOperation class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int(package private) static final intFields inherited from class jmri.CommonTurnoutOperation
interval, intervalStepSize, maxInterval, maxMaxTries, maxTries, minInterval, minMaxTriesFields inherited from class jmri.TurnoutOperation
feedbackModes, name, nonceFields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted.RawTurnoutOperation(String n, int i, int mt) -
Method Summary
Modifier and TypeMethodDescriptionintstatic intintstatic intGet a TurnoutOperator instance for this operation.Get the ToolTip for the Turnout Operator.Return clone with different name.Methods inherited from class jmri.CommonTurnoutOperation
equivalentTo, getInterval, getMaxTries, setInterval, setMaxTriesMethods inherited from class jmri.TurnoutOperation
compareTo, dispose, equals, getDefinitive, getName, hashCode, isDefinitive, isDeleted, isInUse, isNonce, makeNonce, matchFeedbackMode, rename, setFeedbackModes, setNonceMethods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
SUPPORTED_FEEDBACK_MODES
- See Also:
-
defaultInterval
- See Also:
-
defaultMaxTries
- See Also:
-
-
Constructor Details
-
RawTurnoutOperation
-
RawTurnoutOperation
public RawTurnoutOperation()Constructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted.
-
-
Method Details
-
makeCopy
Return clone with different name.- Specified by:
makeCopyin classTurnoutOperation- Parameters:
n- name for new copy- Returns:
- TurnoutOperation of same concrete class as this
-
getDefaultInterval
- Specified by:
getDefaultIntervalin classCommonTurnoutOperation
-
getDefaultMaxTries
- Specified by:
getDefaultMaxTriesin classCommonTurnoutOperation
-
getDefaultIntervalStatic
-
getDefaultMaxTriesStatic
-
getOperator
Get a TurnoutOperator instance for this operation.- Specified by:
getOperatorin classCommonTurnoutOperation- Parameters:
t- the turnout to apply the operation to- Returns:
- the operator
-
getToolTip
Description copied from class:TurnoutOperationGet the ToolTip for the Turnout Operator.- Overrides:
getToolTipin classTurnoutOperation- Returns:
- String or null.
-