|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.cornell.cs.sam.utils.SamThread
edu.cornell.cs.sam.ui.SamGUI.RunThread
public class SamGUI.RunThread
Allows a GUI to run a program with breakpoints and with the ability to stop execution at any time
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 SamGUI.BreakpointList |
breakpoints
A list of all current breakpoints. |
protected int |
delay
The delay after each intruction |
protected Processor |
proc
Provides access to the processor |
protected Sys |
sys
Provides access to the system |
static int |
THREAD_BREAKPOINT
|
static int |
THREAD_STEP
|
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 | |
---|---|
SamGUI.RunThread(SamThread.ThreadParent parent,
Sys sys,
int delay)
Creates a new thread |
Method Summary | |
---|---|
void |
execute()
Starts the thread |
SamGUI.BreakpointList |
getBreakpointList()
|
void |
setBreakpointList(SamGUI.BreakpointList l)
|
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 |
---|
protected Processor proc
protected Sys sys
protected int delay
protected SamGUI.BreakpointList breakpoints
public static final int THREAD_BREAKPOINT
public static final int THREAD_STEP
Constructor Detail |
---|
public SamGUI.RunThread(SamThread.ThreadParent parent, Sys sys, int delay)
parent
- the frontend that needs to be updatedsys
- the system to usedelay
- # of milliseconds between command executionMethod Detail |
---|
public void setBreakpointList(SamGUI.BreakpointList l)
public SamGUI.BreakpointList getBreakpointList()
public void execute() throws java.lang.Exception
execute
in class SamThread
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |