Package jmri.implementation
Class NoFeedbackTurnoutOperator
java.lang.Object
java.lang.Thread
jmri.TurnoutOperator
jmri.implementation.NoFeedbackTurnoutOperator
- All Implemented Interfaces:
Runnable
public class NoFeedbackTurnoutOperator extends TurnoutOperator
Concrete subclass of TurnoutOperator for a turnout that has no feedback.
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.TurnoutOperator
TurnoutOperator.TurnoutOperatorException
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NoFeedbackTurnoutOperator(AbstractTurnout t, long i, int mt)
-
Method Summary
Modifier and Type Method Description void
run()
Do the automation for a turnout with no feedback.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
Constructor Details
-
Method Details
-
run
Do the automation for a turnout with no feedback. This means try maxTries times at an interval of interval. Note the call to operatorCheck each time we're about to actually do something - if we're no longer the current operator this throws TurnoutOperatorException which just terminates the thread.
-