|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ubc.cs.JLog.Foundation.jPrologServiceThread
ubc.cs.JLog.Foundation.jConsultSourceThread
public class jConsultSourceThread
This class implements consulting of a prolog source text.
The source is a TextArea
, as is the error output.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected jPrologServiceBroadcaster |
begin
|
protected jPrologServiceBroadcaster |
end
|
protected java.io.PrintWriter |
errors
|
protected iPrologServiceText |
source
|
Fields inherited from class ubc.cs.JLog.Foundation.jPrologServiceThread |
---|
allow_release, prolog, stopped |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
jConsultSourceThread(jPrologServices ps,
iPrologServiceText s,
java.io.PrintWriter e)
|
Method Summary | |
---|---|
boolean |
isCurrentlyConsulting()
|
void |
printOutput(java.lang.String s)
Displays errors and other output that results from consulting the source. |
void |
run()
Performs and controls the entire consultation phase. |
void |
setListeners(jPrologServiceBroadcaster b,
jPrologServiceBroadcaster e,
jPrologServiceBroadcaster s)
|
Methods inherited from class ubc.cs.JLog.Foundation.jPrologServiceThread |
---|
broadcasted_stop, getPrologServices, setAllowRelease, setStoppedListeners |
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 |
---|
protected iPrologServiceText source
protected java.io.PrintWriter errors
protected jPrologServiceBroadcaster begin
protected jPrologServiceBroadcaster end
Constructor Detail |
---|
public jConsultSourceThread(jPrologServices ps, iPrologServiceText s, java.io.PrintWriter e)
Method Detail |
---|
public void setListeners(jPrologServiceBroadcaster b, jPrologServiceBroadcaster e, jPrologServiceBroadcaster s)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isCurrentlyConsulting()
isCurrentlyConsulting
in class jPrologServiceThread
public void printOutput(java.lang.String s)
printOutput
in class jPrologServiceThread
s
- the input string to append to errors.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |