protected void waitUntilStopped(){
  boolean doneWaiting=false;
  while (!doneWaiting) {
    if (_autoEngineer != null) {
      doneWaiting=_autoEngineer.isStopped();
    }
 else {
      doneWaiting=true;
    }
    if (!doneWaiting) {
      try {
        Thread.sleep(50);
      }
 catch (      InterruptedException e) {
      }
    }
  }
}

protected void waitUntilStopped ( ) { boolean doneWaiting = false ; while ( ! doneWaiting ) { if ( _autoEngineer != null ) { doneWaiting = _autoEngineer . isStopped ( ) ; } else { doneWaiting = true ; } if ( ! doneWaiting ) { try { Thread . sleep ( 50 ) ; } catch ( InterruptedException e ) { } } } }
returns when train is stopped note : provides for _autoengineer becoming null during wait ties up the current autoactivetrain thread
