edu.cornell.cs.sam.ui
Class TestScript.TestThread

java.lang.Object
  extended by java.lang.Thread
      extended by edu.cornell.cs.sam.utils.SamThread
          extended by edu.cornell.cs.sam.ui.TestScript.TestThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
TestScript

public static class TestScript.TestThread
extends SamThread


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cornell.cs.sam.utils.SamThread
SamThread.ThreadParent
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  Processor proc
           
protected  Sys sys
           
protected  java.util.List<? extends TestScript.Test> tests
           
static int THREAD_TEST_COMPLETED
           
 
Fields inherited from class edu.cornell.cs.sam.utils.SamThread
THREAD_EXCEPTION, THREAD_EXIT_OK, THREAD_INTERRUPTED
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestScript.TestThread(SamThread.ThreadParent parent, Sys sys, java.util.List<? extends TestScript.Test> tests)
           
 
Method Summary
 void execute()
          The main method used to execute one step.
 Sys getSys()
           
 java.util.List<? extends TestScript.Test> getTests()
           
 void setTests(java.util.List<? extends TestScript.Test> tests)
           
 
Methods inherited from class edu.cornell.cs.sam.utils.SamThread
clearInterrupt, getParent, interrupt, interruptRequested, run, setParent
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proc

protected Processor proc

sys

protected Sys sys

tests

protected java.util.List<? extends TestScript.Test> tests

THREAD_TEST_COMPLETED

public static final int THREAD_TEST_COMPLETED
See Also:
Constant Field Values
Constructor Detail

TestScript.TestThread

public TestScript.TestThread(SamThread.ThreadParent parent,
                             Sys sys,
                             java.util.List<? extends TestScript.Test> tests)
Method Detail

setTests

public void setTests(java.util.List<? extends TestScript.Test> tests)

getTests

public java.util.List<? extends TestScript.Test> getTests()

getSys

public Sys getSys()

execute

public void execute()
             throws TestScript.TestScriptException
Description copied from class: SamThread
The main method used to execute one step. This method must check the stopRequested flag and respect its status.

Specified by:
execute in class SamThread
Throws:
TestScript.TestScriptException