Package jmri
Class SensorTurnoutOperation
- java.lang.Object
-
- jmri.beans.PropertyChangeSupport
-
- jmri.TurnoutOperation
-
- jmri.CommonTurnoutOperation
-
- jmri.SensorTurnoutOperation
-
- All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>
,PropertyChangeFirer
,PropertyChangeProvider
public class SensorTurnoutOperation extends CommonTurnoutOperation
SensorTurnoutOperation class - specialization of TurnoutOperation to provide automatic retry for a turnout with explicit feedback from sensor(s).
-
-
Field Summary
Fields Modifier and Type Field Description static int
defaultInterval
static int
defaultMaxTries
(package private) static int
SUPPORTED_FEEDBACK_MODES
-
Fields inherited from class jmri.CommonTurnoutOperation
interval, intervalStepSize, maxInterval, maxMaxTries, maxTries, minInterval, minMaxTries
-
Fields inherited from class jmri.TurnoutOperation
feedbackModes, name, nonce
-
Fields inherited from class jmri.beans.PropertyChangeSupport
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description SensorTurnoutOperation()
Constructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted.SensorTurnoutOperation(java.lang.String n, int i, int mt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDefaultInterval()
int
getDefaultMaxTries()
TurnoutOperator
getOperator(AbstractTurnout t)
Get a TurnoutOperator instance for this operation.java.lang.String
getToolTip()
Get the ToolTip for the Turnout Operator.TurnoutOperation
makeCopy(java.lang.String n)
Return clone with different name.-
Methods inherited from class jmri.CommonTurnoutOperation
equivalentTo, getInterval, getMaxTries, setInterval, setMaxTries
-
Methods inherited from class jmri.TurnoutOperation
compareTo, dispose, equals, getDefinitive, getName, hashCode, isDefinitive, isDeleted, isInUse, isNonce, makeNonce, matchFeedbackMode, rename, setFeedbackModes, setNonce
-
Methods inherited from class jmri.beans.PropertyChangeSupport
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
-
-
-
Field Detail
-
SUPPORTED_FEEDBACK_MODES
static final int SUPPORTED_FEEDBACK_MODES
- See Also:
- Constant Field Values
-
defaultInterval
public static final int defaultInterval
- See Also:
- Constant Field Values
-
defaultMaxTries
public static final int defaultMaxTries
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SensorTurnoutOperation
public SensorTurnoutOperation(java.lang.String n, int i, int mt)
-
SensorTurnoutOperation
public SensorTurnoutOperation()
Constructor with default values - this creates the "defining instance" of the operation type hence it cannot be deleted.
-
-
Method Detail
-
makeCopy
public TurnoutOperation makeCopy(java.lang.String n)
Return clone with different name.- Specified by:
makeCopy
in classTurnoutOperation
- Parameters:
n
- name for new copy- Returns:
- TurnoutOperation of same concrete class as this
-
getDefaultInterval
public int getDefaultInterval()
- Specified by:
getDefaultInterval
in classCommonTurnoutOperation
-
getDefaultMaxTries
public int getDefaultMaxTries()
- Specified by:
getDefaultMaxTries
in classCommonTurnoutOperation
-
getOperator
public TurnoutOperator getOperator(AbstractTurnout t)
Get a TurnoutOperator instance for this operation.- Specified by:
getOperator
in classCommonTurnoutOperation
- Parameters:
t
- the turnout to apply the operation to- Returns:
- the operator
-
getToolTip
public java.lang.String getToolTip()
Description copied from class:TurnoutOperation
Get the ToolTip for the Turnout Operator.- Overrides:
getToolTip
in classTurnoutOperation
- Returns:
- String or null.
-
-