Class SensorTurnoutOperator

java.lang.Object
java.lang.Thread
jmri.TurnoutOperator
jmri.implementation.SensorTurnoutOperator
All Implemented Interfaces:
Runnable

  • Field Details

  • Constructor Details

  • Method Details

    • 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 interface Runnable
      Overrides:
      run in class Thread