jmri
Class TurnoutOperator

java.lang.Object
  extended by java.lang.Thread
      extended by jmri.TurnoutOperator
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
NoFeedbackTurnoutOperator, RawTurnoutOperator, SensorTurnoutOperator

public abstract class TurnoutOperator
extends Thread

Some (not much) common machinery for the concrete turnout operator classes.

Author:
John Harper Copyright 2005

Nested Class Summary
static class TurnoutOperator.TurnoutOperatorException
          Exception thrown when the turnout's operator has changed while the operator is running.
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
protected  AbstractTurnout myTurnout
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected TurnoutOperator(AbstractTurnout t)
           
 
Method Summary
protected  void operatorCheck()
           
 
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, run, 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
 

Field Detail

myTurnout

protected AbstractTurnout myTurnout
Constructor Detail

TurnoutOperator

protected TurnoutOperator(AbstractTurnout t)
Method Detail

operatorCheck

protected void operatorCheck()
                      throws TurnoutOperator.TurnoutOperatorException
Throws:
TurnoutOperator.TurnoutOperatorException


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