|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
cage.EmbedThread
public class EmbedThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
boolean |
debug
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
EmbedThread(Embedder embedder,
int priorityOffset)
Creates a new thread for running the given Embedder and that
has its priority lowered by priorityOffset. |
Method Summary | |
---|---|
void |
abort()
|
void |
embed(CaGeResult result,
java.beans.PropertyChangeListener listener,
boolean do2D,
boolean do3D,
boolean redo2D)
Schedules a new embedding to be calculated. |
void |
end()
|
void |
fireTaskFinished()
|
java.lang.String |
getDiagnosticOutput()
|
EmbedThreadListener |
getEmbedThreadListener()
|
void |
last()
|
void |
run()
|
void |
setDiagnosticOutput(java.lang.String diagnosticOutput)
|
void |
setEmbedThreadListener(EmbedThreadListener embedThreadListener)
|
int |
tasksCompleted()
|
int |
tasksGiven()
|
int |
tasksLeft()
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public volatile boolean debug
Constructor Detail |
---|
public EmbedThread(Embedder embedder, int priorityOffset)
Embedder
and that
has its priority lowered by priorityOffset.
embedder
- The Embedder
to run in this thread.priorityOffset
- The amount by which this thread has its priority lowered.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setDiagnosticOutput(java.lang.String diagnosticOutput)
public java.lang.String getDiagnosticOutput()
public void embed(CaGeResult result, java.beans.PropertyChangeListener listener, boolean do2D, boolean do3D, boolean redo2D)
PropertyChangeListener
is notified of a change in the property coordinates and the value
is the succes of the embedding.
result
- listener
- do2D
- do3D
- redo2D
- public void end()
public void last()
public void abort()
public int tasksGiven()
public int tasksCompleted()
public int tasksLeft()
public void fireTaskFinished()
public void setEmbedThreadListener(EmbedThreadListener embedThreadListener)
public EmbedThreadListener getEmbedThreadListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |