Package jmri.implementation
Class SensorTurnoutOperator
- java.lang.Object
-
- java.lang.Thread
-
- jmri.TurnoutOperator
-
- jmri.implementation.SensorTurnoutOperator
-
- All Implemented Interfaces:
java.lang.Runnable
public class SensorTurnoutOperator extends TurnoutOperator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.TurnoutOperator
TurnoutOperator.TurnoutOperatorException
-
-
Constructor Summary
Constructors Constructor Description SensorTurnoutOperator(AbstractTurnout t, long i, int mt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Do the autmation for a turnout with sensor feedback.-
Methods inherited from class jmri.TurnoutOperator
operatorCheck
-
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
-
-
-
-
Constructor Detail
-
SensorTurnoutOperator
public SensorTurnoutOperator(AbstractTurnout t, long i, int mt)
-
-
Method Detail
-
run
public void run()
Do the autmation for a turnout with sensor feedback. Keep trying up to maxTries until the sensor tells us the change has actually happened. 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.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
-