|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
modsim.SimulatorThread
public abstract class SimulatorThread
SimulatorThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
javax.swing.JPanel |
panel
Place for optional JPanel to place GUI images. |
SimulatedProcessImage |
processImage
The process image that contains the memory map. |
boolean |
running
flag for running the simulator. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SimulatorThread()
Constructor. |
Method Summary | |
---|---|
static void |
pause(long milliseconds)
Delay for milliseconds given. |
void |
run()
Required by Thread. |
void |
setPanel(javax.swing.JPanel panel)
Sets the JPanel where to place things. |
void |
setProcessImage(SimulatedProcessImage pi)
Set the process image to use. |
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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public SimulatedProcessImage processImage
public javax.swing.JPanel panel
public boolean running
Constructor Detail |
---|
public SimulatorThread()
pi
- ProcessImageImplementationMethod Detail |
---|
public static void pause(long milliseconds)
milliseconds
- long - number of milliseconds to delaypublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setPanel(javax.swing.JPanel panel)
panel
- JPanelpublic void setProcessImage(SimulatedProcessImage pi)
pi
- SimulatedProcessImage - memory map to use
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |