jmri.jmrit.logix
Class Engineer

java.lang.Object
  extended by java.lang.Thread
      extended by jmri.jmrit.logix.Engineer
All Implemented Interfaces:
Runnable

public class Engineer
extends Thread
implements Runnable

Thread running the train


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void abort()
          Flag from user to end run
 int getCurrentCommandIndex()
           
 int getRunState()
           
 String getSpeedRestriction()
           
 void rampSpeedTo(String endSpeedType, long waitTime)
          Occupancy of blocks and aspects of Portal signals may modify normal traim speed Ramp speed change.
 void run()
           
 void setHalt(boolean halt)
          Flag from user's control
 void synchNotify(OBlock block)
          If waiting to sync entrance to a block boundary with record time, this call will free the wait.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getCurrentCommandIndex

public int getCurrentCommandIndex()

synchNotify

public void synchNotify(OBlock block)
If waiting to sync entrance to a block boundary with record time, this call will free the wait.

Parameters:
block - train has just entered.

rampSpeedTo

public void rampSpeedTo(String endSpeedType,
                        long waitTime)
Occupancy of blocks and aspects of Portal signals may modify normal traim speed Ramp speed change.


getRunState

public int getRunState()

getSpeedRestriction

public String getSpeedRestriction()

setHalt

public void setHalt(boolean halt)
Flag from user's control


abort

public void abort()
Flag from user to end run



Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads