Class AutoActiveTrain.PauseTrain

  • All Implemented Interfaces:
    java.lang.Runnable
    Enclosing class:
    AutoActiveTrain

    class AutoActiveTrain.PauseTrain
    extends java.lang.Object
    implements java.lang.Runnable
    Pause the train in a separate thread. Train is stopped, then restarted after specified number of fast Minutes have elapsed.
    • Constructor Summary

      Constructors 
      Constructor Description
      PauseTrain​(int fastMinutes)
      Create a PauseTrain
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PauseTrain

        public PauseTrain​(int fastMinutes)
        Create a PauseTrain
        Parameters:
        fastMinutes - the number of fast clock minutes to pause the train
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable